curiousier-george
curiousier-george
When I run ```python def handle_pagination_url(url): global start_url start_url = url print('handle_pagination_url(): start_url =', start_url) pages = 2 start_url = None posts = get_posts(username, cookies=cookie_file, pages=pages, extra_info=True, options={'allow_extra_requests': False, 'HQ_images':...
@neon-ninja Does this still work for you? It's not working for me anymore.
I'm not getting any error that I can tell. Using ```python def handle_pagination_url(url): global start_url start_url = url print('handle_pagination_url(): start_url =', start_url) username = 'zuck' pages = 4 start_url =...
I get 10. Does that mean my cookies aren't working? ``` Starting to iterate pages Exception while requesting URL: https://m.facebook.com/zuck/posts/ Exception: HTTPError('404 Client Error: Not Found for url: https://m.facebook.com/zuck/posts/?locale=en_US') Traceback...
Hmm, after commenting out ```python # set_user_agent("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)") ``` I get 100 and everything seems to work. 😊 Thanks.
Oops, now I'm getting ``` /usr/local/anaconda3/lib/python3.7/site-packages/facebook_scraper/facebook_scraper.py:841: UserWarning: Facebook says 'Unsupported Browser' warnings.warn(f"Facebook says 'Unsupported Browser'") ``` and no reactors (`[]`). Now I remember that that's why I added the `set_user_agent()`...
Is `facebook-scraper` being specifically blocked by Facebook from grabbing `reactors`?
Thanks, it works great! I still got the error for post 5746385992055254 for some reason.
The error I meant was ``` /usr/local/anaconda3/lib/python3.7/site-packages/facebook_scraper/facebook_scraper.py:841: UserWarning: Facebook says 'Unsupported Browser' warnings.warn(f"Facebook says 'Unsupported Browser'") ``` which I am still getting periodically, but after further investigation, that post doesn't...
This is fantastic. Thank you! Using it, I've discovered that I have not been calculating requests correctly. I thought that ```python from facebook_scraper import _scraper from facebook_scraper import * set_cookies("cookies.txt")...