Skip to content

Commit

Permalink
fix top info scrape
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhwang97 committed Feb 9, 2025
1 parent 1bd22fa commit b1114f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def scrape_country(country, latest_date, keywords):
contype = category_span[1].get_text(strip=True).replace("分类:", "")

source_text = top_info.find('p').get_text(strip=True)
original_source = top_info.split("来源:")[1].split("类型:")[0].strip()
original_source = source_text.split("来源:")[1].split("类型:")[0].strip()

tm = top_info.find_all('p')[1].get_text(strip=True)

Expand Down

0 comments on commit b1114f8

Please sign in to comment.