Bottom Page

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/187583127@...ed-public/

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.
Quote
#2
If you need to press a button, then you need to be using selenium.
Suggest the tutorials on this forum here:
web scraping part1
web scraping part2
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 83 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  How to POST html data to be handled by a route endpoint nikos 1 135 Mar-07-2020, 03:14 PM
Last Post: nikos
  Parse data from downloaded html nikos48 7 305 Jan-26-2020, 03:35 PM
Last Post: nikos48
  How to send data from remotely hosted HTML form to Pi sajid 2 501 Jun-27-2019, 10:28 PM
Last Post: sajid
  How to use BeautifulSoup4 with pandas series type of html data? PrateekG 4 1,564 Apr-26-2018, 07:33 AM
Last Post: PrateekG
  Execute using Html, Save data into Database and Download in CSV in Django --Part 1 Prince_Bhatia 0 1,735 Jan-19-2018, 06:05 AM
Last Post: Prince_Bhatia

Forum Jump:


Users browsing this thread: 1 Guest(s)