Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用python提取网站的全部数据?_Python_Angular_Web Scraping_Beautifulsoup - Fatal编程技术网

如何使用python提取网站的全部数据?

如何使用python提取网站的全部数据?,python,angular,web-scraping,beautifulsoup,Python,Angular,Web Scraping,Beautifulsoup,我正在尝试从以下网站读取表的数据:,使用以下代码: import requests import urllib.request import time from bs4 import BeautifulSoup url = 'https://cdn.ime.co.ir' response = requests.get(url) soup = BeautifulSoup(response.text, "html.parser") 但是当我检查soup的内容时,我需要读取的表的数据不在那里 这

我正在尝试从以下网站读取表的数据:,使用以下代码:

import requests
import urllib.request
import time
from bs4 import BeautifulSoup

url = 'https://cdn.ime.co.ir'
response = requests.get(url)

soup = BeautifulSoup(response.text, "html.parser")
但是当我检查
soup
的内容时,我需要读取的表的数据不在那里

这是我喜欢阅读的其中一个表格的数据,点击它上面的横条就会显示出来


我建议您获取网站数据,从
GET
请求开始,而不是
POST

response=request.GET()

之后,应使用beautifulsoup4分析响应中的数据:


问候

我尝试了你的建议,但我需要的数据是在表中,我可以使用soup=BeautifulSoup(response.text,“html.parser”)获取它们的信息。Hi@Ensan3Camel,您可以按照这个或