Python Forum
Issues Scraping Facebook using facebook_scraper
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues Scraping Facebook using facebook_scraper
#3
(Dec-06-2020, 06:38 AM)bowlofred Wrote: word_list is only defined within the for loop. If get_posts is empty, the loop is not run.

If there were posts, the filtered_words1 assignment would only be using the word_list that was set on the last iteration of the loop. The earlier posts wouldn't contribute. That seems incorrect to me.

As the word_list construction relies only on title_list, I think it needs to be moved outside the loop.

How would you adjust it? I'm not 100% sure I understand what you mean.
Reply


Messages In This Thread
RE: Issues Scraping Facebook using facebook_scraper - by DustinKlent - Dec-06-2020, 09:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to accept facebook cookies using python selenium? pablo86ad 0 295 Apr-06-2024, 09:19 PM
Last Post: pablo86ad
  DELETE Post using Python FaceBook Graph API BIG_PESH 0 1,522 Mar-24-2022, 08:28 PM
Last Post: BIG_PESH
  Calling a Facebook API gpbarsky 0 2,227 Jun-04-2018, 02:55 PM
Last Post: gpbarsky

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020