Replies: 5 comments 3 replies
-
The posts come in the order that Facebook serves them. You can sort them by time yourself (something like Yes, it's very easy to remove emoticons. You can remove everything that isn't ASCII with this - |
Beta Was this translation helpful? Give feedback.
-
Thank you again... the encode.decode method was not working for me last night (found this solution elsewhere), but I got it working. The sorted function is taking some doing. Currently getting "TypeError: string indices must be integers". Going to look a little more into the lambda function.
|
Beta Was this translation helpful? Give feedback.
-
Ran the code and got back to back IP bans. Is this because it's calling the sort (thereby performing an initial scrape) and then iterating to scrape through the posts a second time? |
Beta Was this translation helpful? Give feedback.
-
It worked. So, do I only need the c_user and xs values in the JSON file? If so, then I would pair it down to these only. I am getting a PytzUsageWarning (I was getting this a week ago, but it went away). Is this from the expirationDate values in the cookies file? I am going to Dockerize this small app. Would I still need to secure the cookies values as I would have for the credentials? |
Beta Was this translation helpful? Give feedback.
-
Is there anywhere I can add "?sorting_setting=CHRONOLOGICAL" to the URL; so I can get all the posts by choronological order, instead of activity? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to discern and code such that the scraper will run according to recent posts as opposed to new activity? I would like to see the results coming in chronologically.
Also, is there a way to remove emoticons, etc. from a post so that all I am left with is an SMS message that is texted to myself?
Beta Was this translation helpful? Give feedback.
All reactions