Skip to content

Commit f11155b

Browse files
Update Forms, Searching & Pagination.py
1 parent 00d4d01 commit f11155b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ScrapeThisSite/Forms, Searching & Pagination.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
import requests, os
33
from bs4 import BeautifulSoup as bs
44

5-
# import pandas as pd
6-
# all_tables = pd.read_html(link)
7-
85
try: os.mkdir('Scrapped')
96
except: pass
107

@@ -15,4 +12,7 @@
1512
table = soup.findAll('table', attrs = {'class':'table'})[0]
1613
for i in table:
1714
tr = table.findAll('tr')
18-
print(tr)
15+
16+
for j in tr:
17+
print(j.text.strip()) # append this in list
18+
# and update in new dict above list

0 commit comments

Comments
 (0)