I'm trying to access text from a <a>
tag via Beautifulsoup.
Page I'm working with: enter image description here
This is my code:
from bs4 import BeautifulSoup
import requests
def test():
url = 'http://gsapqv1/qlikview/index.htm'
page = requests.get(url)
soup = BeautifulSoup(page.content,'html.parser')
all_applications = []
applications = soup.select('a.name')
for app in applications:
print(app.text)
test()
So in the end i want a list the names of all applications on the page.
I am new to web-scraping and I'm trying to follow tutorials but I'm having a hard time finding the problem/solution.
Aucun commentaire:
Enregistrer un commentaire