Hi All,
Hope you are doing good.
Am very new to python and am in a process of learning it.
Can someone please help me with the code for web scrapping multiple pages in the below website
https://abom.learningbuilder.com/public/...astName&_d=
I have the below code which fetch only one page. How can i get data from all the pages on website? Please let me know.
Thank you.
Br,
Anil
Hope you are doing good.
Am very new to python and am in a process of learning it.
Can someone please help me with the code for web scrapping multiple pages in the below website
https://abom.learningbuilder.com/public/...astName&_d=
I have the below code which fetch only one page. How can i get data from all the pages on website? Please let me know.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import urllib import urllib.request from bs4 import BeautifulSoup def make_soup(url): thepage = urllib.request.urlopen(url) soupdata = BeautifulSoup(thepage, "html.parser" ) return soupdata mydata_saved = "" for record in soup.findAll( 'tr' ): mydata = "" for data in soup.findAll( 'td' ): mydata = mydata + "," + data.text mydata_saved = mydata_saved + "\n" + mydata[ 1 :] print (mydata_saved) |
Br,
Anil