https://xiang1023.blogspot.com/2017/09/python-1.html
这篇感觉有用
但
import requests
from bs4 import BeautifulSoup as bs
search_url = "https://www.104.com.tw/area/freshman/search?
这边我还算董 应该
但这个
head = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
'Accept-Language':'zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4'}
res = requests.get(search_url, headers = head)
print(res.encoding)
res.encoding = 'utf8'
soup = bs(res.text)
下面这些是啥 阿 感觉是 浏览器的东西