---
# System prepended metadata

title: Get ranking

---

# 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")
    
```