Normalize profile URLs passed on the command line before processing
Simon Volpert
5 years ago
115 | 115 | elif args.command == 'crawl': |
116 | 116 | # Add URLs passed on the command line to the front of the queue |
117 | 117 | for _url in reversed(args.URL): |
118 | # Normalize the page between Mastodon/Pleroma username formats | |
119 | _url = _url.replace('/@', '/users/') | |
118 | 120 | if _url in urls.done: |
119 | 121 | urls.done.remove(_url) |
120 | 122 | store_url(_url, True) |