# Get ranking ```python= import requests from bs4 import BeautifulSoup import re def get_ranking(link): response = requests.get(link) print(response.text) soup = BeautifulSoup(response.text, features="html.parser") tags = soup.find_all("td", string=re.compile("文學新書暢銷榜")) get_ranking("https://www.monster101.com/r/0010865177") ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up