Skip to content

Commit

Permalink
chore: remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
erthium committed Sep 21, 2024
1 parent 00029e0 commit 4f0512c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python3/data_scrapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@
security_news_template = 'https://www.wired.com/category/security/?page={}'
website_url_template = 'https://www.wired.com{}'
link_class = 'SummaryItemHedLink-civMjp ejgyuy summary-item-tracking__hed-link summary-item__hed-link'
"""
Structure in website:
<sections> : data-testid=SummaryRiverSection & class=SummaryRiverSection-kPnzzO fhMbrM
<a> : class=S
href={link}
<h3> -> Title


"""

with open('security_news.csv', 'w', encoding='utf-8') as file:
file.write('Title;;Link\n')
for i in range(1, 100):
Expand All @@ -32,6 +24,3 @@
news_soup = BeautifulSoup(news_response.text, 'html.parser')
time = news_soup.find('time').text
file.write(f'{title};;{href};;{time}\n')



0 comments on commit 4f0512c

Please sign in to comment.