Python Forum

Full Version: extrat data from a button html
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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