本帖最后由 oppo 于 2018-9-27 23:13 编辑
#!/usr/bin/python
def getdom(page=1,debug=False):
# print('read dom from page.{}'.format(page))
url = https://freedns.afraid.org/domain/registry/?page={}&sort=4&q=
headers = {
'upgrade-insecure-requests': "1",
'user-agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36",
'accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
'referer': https://freedns.afraid.org/domain/registry/,
'accept-encoding': "gzip, deflate, br",
'accept-language': "zh-HK,zh;q=0.9",
'cache-control': "no-cache",
|