extrat data from a button html - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: extrat data from a button html (/thread-25228.html) |
extrat data from a button html - windows11 - Mar-24-2020 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@N04/49693278761/in/dateposted-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. RE: extrat data from a button html - Larz60+ - Mar-24-2020 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 |