Skip to content

Commit eb8056a

Browse files
authored
Update anime_tracker.py
1 parent 8c1a279 commit eb8056a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Anime_Tracker/anime_tracker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
def details(soup):
1616

17-
info = soup.find('div', {'class': 'pure-1 md-3-5'})
18-
print("\nAbout the Anime : \n", "\t\t", info.find('p').getText(), "\n")
17+
info = soup.find('div', {'class': 'pure-1 md-3-5'}) # selecting div with class pure...
18+
print("\nAbout the Anime : \n", "\t\t", info.find('p').getText(), "\n") # now extracting the text for p tag of the div
1919

2020
total_episodes = soup.find('div', {'class': 'pure-1 md-1-5'})
2121
print("\nTotal number of episodes :\t",
@@ -51,7 +51,7 @@ def entry():
5151
source_code = requests.get(search_url)
5252
content = source_code.content
5353
global soup
54-
soup = BeautifulSoup(content, features="html.parser")
54+
soup = BeautifulSoup(content, features="html.parser") # to parse the selectd HTML
5555
# print(soup.prettify)
5656

5757
try:

0 commit comments

Comments
 (0)