Add page id to each post data

This commit is contained in:
Arnaud Vergnet 2020-08-08 16:24:18 +02:00
parent f0de22a8b1
commit 9f2ae77d2a

View file

@ -18,6 +18,7 @@ def scrape_data(page):
"video": post["video"], "video": post["video"],
"link": post["link"], "link": post["link"],
"time": post["time"].timestamp(), "time": post["time"].timestamp(),
"page_id": page,
} }
post_list.append(cleaned_post) post_list.append(cleaned_post)
return post_list return post_list