热门搜索 :
考研考公
您的当前位置:首页正文

用python3爬虫

来源:东饰资讯网

识别网站所用技术

import builtwith

寻找网站所有者

pip install python-whois

import whois

下载网页

import urllib.request

urllib.request.urlopen(url).read().decode('utf-8')

查询域名是否被注册

import urllib.request

print(req.read().decode('utf-8'))

网页解析

#python2为 urlparse

import urllib.parse

Top