repl.it
@yulin1127/

python-basic-hw16-2

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
import requests

url = 'https://www.books.com.tw/web/sys_bbotm/books/020903/?pd=3'

headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'}

resp = requests.get(url, headers=headers)

print(resp.text)