Open doobybug opened 2 years ago
This page works fine for me, the code:
set_cookies("cookies.json")
posts = list(get_posts('Paul-Mark-Supermarket-147867532048848', pages=2, options={"allow_extra_requests": False, "posts_per_page": 100}))
print(len(posts))
outputs 101
. Do you get the same result? Try enable_logging()
- do you get any errors in the log?
Hi I am trying to scrape a couple of pages but once I include the cookies file somehow, some pages do not return more than 4 posts. You can see the code below. For example if I use the page Paul-Mark-Supermarket-147867532048848 only 4 posts are returned while timesofmalta works fine. Any idea why this happens?
`with open('aom_fb_3.csv', 'w', encoding = 'utf-8', newline='') as file: writer = csv.writer(file) writer.writerow(["Post_ID", "Time", "Text", "Likes", "Shares", "Live", "Image", "Video"])