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.
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.
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=""
soup=make_soup("https://abom.learningbuilder.com/public/membersearch?model.FirstName=&model.LastName=&model.UniqueId=&model.City=&model.State=&performSearch=true&_p=1&_s=20&_o=LastName&_d=")
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)Thank you.Br,
Anil
