使用BeautifulSoup 4进行​​身份验证时进行身份验证

时间:2017-01-23 17:17:01

标签: python authentication

我无法理解如何抓取我可以访问的网络视图的过程。我想刮掉我的学院电子邮件,但似乎阻止程序表格正常运行。

from bs4 import BeautifulSoup
import requests

url = ""

response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")

links = soup.find_all('hpc-numeric hpc-positive')

for link in links:
    print(link.text)
    print(link['hpc-table-row hpc-even']) 

我知道我需要添加一些东西让服务器知道我是谁,我不知道如何。

0 个答案:

没有答案