欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 7467|回复: 2
收起左侧

test

[复制链接]
oppo 发表于 2018-9-27 23:10 | 显示全部楼层 |阅读模式
本帖最后由 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",
 楼主| oppo 发表于 2018-9-27 23:12 | 显示全部楼层
#!/usr/bin/python
# -*- coding: UTF-8 -*-
 
for i in range(1,5):
    for j in range(1,5):
        for k in range(1,5):
            if( i != k ) and (i != j) and (j != k):
                print i,j,k
 楼主| oppo 发表于 2018-9-27 23:14 | 显示全部楼层
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",
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-11-25 12:50 , Processed in 0.036649 second(s), 9 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表