Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Scrape Facebook page user posts text
#1
Hello! 

I am new to Python and looking for a solution to scrape all user posts with replies from other users and the page (text) from a Facebook page over a period of three days last year. How to do this? And anyone willing to help me? 

Greetings from a student in Stockholm.
Quote
#2
Hey there. I'll see what I can do for you tomorrow morning once I am on my computer, but I believe I should be able to create what you want fairly easily and then submit the source code. However, scanning over what I have to work with, might require more than a day in order to balance things out properly.

All the best,

Joseph
Quote
#3
(May-08-2017, 12:40 AM)KJoseph_f2 Wrote: Hey there. I'll see what I can do for you tomorrow morning once I am on my computer, but I believe I should be able to create what you want fairly easily and then submit the source code. However, scanning over what I have to work with, might require more than a day in order to balance things out properly.

All the best,

Joseph
Quote
#4
facebook has its own API. It would be wise to scrape posts via their API verses logging in via selenium...otherwise you could find yourself blocked from facebook from repetitive requests.
Quote
#5
(May-08-2017, 12:51 AM)metulburr Wrote: facebook has its own API. It would be wise to scrape posts via their API verses logging in via selenium...otherwise you could find yourself blocked from facebook from repetitive requests.
Yup, I had the API in mind. Not 100% sure how limited it might be yet. However, I know that manually attempting to extract posts from some HTML source code is a headache in itself and a last resort too.
Quote
#6
last i recall their API would allow everything from posting on your behalf to changing settings. I personally prefer BeautifulSoup and scraping HTML as i am comfortable with it, and I hate learning API's but facebook is probably the one of the tightest places. I get banned from posting in groups when i manually do it due to posting to too many groups within X timeframe. Couldnt imagine a bot.
Quote
#7
(May-08-2017, 03:00 AM)metulburr Wrote: last i recall their API would allow everything from posting on your behalf to changing settings. I personally prefer BeautifulSoup and scraping HTML as i am comfortable with it, and I hate learning API's but facebook is probably the one of the tightest places. I get banned from posting in groups when i manually do it due to posting to too many groups within X timeframe. Couldnt imagine a bot.
True, it could be fairly problematic. However, OP only wants to retrieve a user's feed from what I can tell. So providing I don't send too many query requests, I think it should be fine (fingers crossed) :)
metulburr likes this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  user spamming just to get 5 posts to make attachments metulburr 4 267 Dec-31-2018, 11:03 PM
Last Post: Larz60+
  How do i scrape website whose page changes using javsacript _dopostback function and Prince_Bhatia 1 1,576 Aug-06-2018, 09:45 AM
Last Post: wavic
  Application like simpler facebook wall in python framework seidman 1 958 Mar-11-2018, 05:07 PM
Last Post: wavic
  Need help with Django 2.0 + Facebook SDK avtrrr 4 1,537 Jan-31-2018, 08:36 AM
Last Post: Larz60+
  facebook friends crawler edithegodfather 12 10,010 Jan-15-2018, 07:07 AM
Last Post: qnkhuat
  I need request POST for Facebook in My Profile Kalet 4 1,363 Sep-27-2017, 05:53 PM
Last Post: Kalet
  Facebook AutoPost badpandahere 6 1,870 Sep-12-2017, 11:20 AM
Last Post: badpandahere
  facebook scraping metulburr 3 4,248 Jun-02-2017, 01:00 AM
Last Post: metulburr

Forum Jump:


Users browsing this thread: 1 Guest(s)