|
@ -73,9 +73,12 @@ def force_mobile(url): |
|
|
Force a url to use the mobile site. |
|
|
Force a url to use the mobile site. |
|
|
""" |
|
|
""" |
|
|
parsed = urlparse.urlparse(url) |
|
|
parsed = urlparse.urlparse(url) |
|
|
if parsed.netloc == "www.facebook.com": |
|
|
return urlparse.urlunparse((parsed.scheme, |
|
|
return f"https://mobile.facebook.com{parsed.path}" |
|
|
"mobile.facebook.com", |
|
|
return url |
|
|
parsed.path, |
|
|
|
|
|
parsed.params, |
|
|
|
|
|
parsed.query, |
|
|
|
|
|
parsed.fragment)) |
|
|
|
|
|
|
|
|
NO_CHROME_DRIVER = """ |
|
|
NO_CHROME_DRIVER = """ |
|
|
You need to manually install the chromedriver for Selenium\n |
|
|
You need to manually install the chromedriver for Selenium\n |
|
|