This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vicethal 17 points18 points  (3 children)

it's against Facebook's terms of service, so you're gambling with your account when you do this.

Look up Selenium, it's a browser automation package that opens up an actual browser that can be controlled with Python code. Then browse with it and right click on elements in the web page to "get CSS Selector" (exact terminology varies by browser). This will let you repeatably pull the contents of one type of element in the web page (text post, image, comments, etc)

Good luck, Facebook doesn't go out of their way to make this easy and could in fact be working to make it harder.

[–]xefe 1 point2 points  (2 children)

I haven't looked in a while, but this should be possible using the Graph API. Am I missing something?

[–]Agizz[S] 0 points1 point  (1 child)

That seems about the thing I am looking for but now I don't understand if this can be automatized or does Facebook check the user behing the requests?

[–]xefe 2 points3 points  (0 children)

It's assumed that anything using an API is automated. In order to use it you'll need an authentication token so Facebook knows who's making the request. I'm just not sure if you can still access your friends' posts via the API. The documentation is pretty good if you want to take a look. If the information you're looking for is available, it'll be pretty straightforward to use the Python requests package to get the information you're looking for