Skip to content

Commit

Permalink
fix: scraper docker error
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejoseph committed Feb 8, 2025
1 parent 4cd1015 commit fd0c983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def main(num_proc=3):

for article in tqdm(articles, desc=f"Uploading {key}"):
# Convert article to a DataFrame
df = pd.DataFrame([article])
article_dict = article.to_dict()
df = pd.DataFrame([article_dict])

# md5 of the article id
article_id = hashlib.md5(article.id.encode()).hexdigest()

Expand Down

0 comments on commit fd0c983

Please sign in to comment.