How to scrape specific items from this table with bs4? (I'm new to Python)
How to scrape specific items from this table with bs4? (I'm new to Python)
I'm new to Python and I'm struggling with scraping a table from a website and pick specific items from it. I would really appreciate it if anybody could help me at least find the table and I will try to proceed from there :D
Link of website with the table:
https://nanocrawler.cc/explorer/account/xrb_3jwrszth46rk1mu7rmb4rhm54us8yg1gw3ipodftqtikf5yqdyr7471nsg1k/history
I followed many tutorials but it doesn't seem to work in my case
This is what I have done so far:
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
my_url = 'https://nanocrawler.cc/explorer/account/xrb_3jwrszth46rk1mu7rmb4rhm54us8yg1gw3ipodftqtikf5yqdyr7471nsg1k/history'
# Opening connection, grabbing the page
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
# finding table
stat_table = page_soup.findAll("table", "class" : "table-responsive")
print(stat_table)
print(len(stat_table))
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
oh so when i do view source data is not static its dynamic.please switch to something like selenium
– iamklaus
Sep 16 '18 at 6:56