Apr-09-2022, 04:03 PM
How it works is that you should give it try,to show some effort
Look at this for some basic way to do web-scraping in Python.
So the start could be like this.
In BS can get attributes bye using
Look at this for some basic way to do web-scraping in Python.
So the start could be like this.
import requests from bs4 import BeautifulSoup number = '+12345678' url = f'https://www.tellows.es/num/{number}' response = requests.get(url) soup = BeautifulSoup(response.content, 'lxml') print(soup.find('title').text)Now look at page source the Score number is in the
img
tag,and it's a attributes of the img tag.In BS can get attributes bye using
attrs
.