Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extractig an score is not there
#2
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.
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.
Reply


Messages In This Thread
Extractig an score is not there - by jrotaetxe - Apr-09-2022, 03:09 PM
RE: Extractig an score is not there - by snippsat - Apr-09-2022, 04:03 PM
RE: Extractig an score is not there - by jrotaetxe - Apr-09-2022, 10:12 PM
RE: Extractig an score is not there - by snippsat - Apr-09-2022, 11:18 PM
RE: Extractig an score is not there - by jrotaetxe - Apr-10-2022, 08:33 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020