Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 17e6ab6

Browse files
Update Times_of_india.py
1 parent e01b395 commit 17e6ab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Web-Scraping/Times_of_india/Times_of_india.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
url = "http://timesofindia.indiatimes.com/"
66

7-
# Use requests library to get html from artist's page
7+
# Use requests library to get html from TOI's page
88
response = requests.get(url)
99
# Make the html soup object
1010
soup = BeautifulSoup(response.content, 'html.parser')
1111

12-
print("\t!!!**The Times of India**!!!")
12+
print("\t!!!** The Times of India **!!!")
1313
today = datetime.date.today()
1414
print(today.strftime('\tThe date %d, %b %Y'))
1515

1616
# scrping times of India in four domains:
17-
print("\n\t\t****Flash news****")
17+
print("\n\t\t**** Flash news ****")
1818
for div in soup.findAll('div', attrs={'id':'featuredstory'}):
1919
for a in div.findAll('a'):
2020
print(a.text)

0 commit comments

Comments
 (0)