Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
extrat data from a button html
#1
Hello guys, I', trying to extract a text/info from a button in one webpage.

The button have a number (inside the button) and is always changing the number depending the number of items.

https://www.flickr.com/photos/[email protected]/

the link is the information from the html

import requests
r=requests.get("link")
from bs4 import BeautifulSoup

soup= BeautifulSoup(r.text, "html.parser")

soup.find_all("/span")
print(soup.find_all("/span"))
quit()


I already try to use "a"... but I canĀ“t find the number from the buttom.

please guys help.
Reply


Messages In This Thread
extrat data from a button html - by windows11 - Mar-24-2020, 09:32 AM
RE: extrat data from a button html - by Larz60+ - Mar-24-2020, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to scrape data from HTML with no identifiers pythonpaul32 2 795 Dec-02-2023, 03:42 AM
Last Post: pythonpaul32
  Post HTML Form Data to API Endpoints Dexty 0 1,382 Nov-11-2021, 10:51 PM
Last Post: Dexty
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,536 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Cleaning HTML data using Jupyter Notebook jacob1986 7 4,052 Mar-05-2021, 10:44 PM
Last Post: snippsat
  Any way to remove HTML tags from scraped data? (I want text only) SeBz2020uk 1 3,414 Nov-02-2020, 08:12 PM
Last Post: Larz60+
  html data cell attribute issue delahug 5 3,087 May-31-2020, 09:18 AM
Last Post: delahug
  Extracting html data using attributes WiPi 14 5,335 May-04-2020, 02:04 PM
Last Post: snippsat
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,329 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  How to POST html data to be handled by a route endpoint nikos 1 2,348 Mar-07-2020, 03:14 PM
Last Post: nikos
  Parse data from downloaded html nikos48 7 3,543 Jan-26-2020, 03:35 PM
Last Post: nikos48

Forum Jump:

User Panel Messages

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