#!/usr/bin/env python
# encoding: utf-8
from lxml import etree
import requests
from selenium import webdriver
import time
import json
import re
from selenium.webdriver.common.action_chains import ActionChains
from bs4 import BeautifulSoup
# 主页地址
BASE_DOMAIN = 'https://www.tyxz.org/rank'
HEADERS = {
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Mobile Safari/537.36',
'cookie': 'isAdult=yes; wordpress_logged_in_60e2494f3f15003d77f365a4f1e8e9cc=%E3%82%9E_1600799319%7C1624187950%7CwjOIqwLv0bxT7nZMbOwuq6ZiVPHDUgWc0NcBcs5fv1C%7C0c6c996237752bf6c967699527dda084e29e41093b100af2f8ffd1b507f9993d; WP-LastViewedPosts=a%3A15%3A%7Bi%3A0%3Bi%3A17276%3Bi%3A1%3Bi%3A17278%3Bi%3A2%3Bi%3A17193%3Bi%3A3%3Bi%3A17202%3Bi%3A4%3Bi%3A17212%3Bi%3A5%3Bi%3A17219%3Bi%3A6%3Bi%3A17222%3Bi%3A7%3Bi%3A17189%3Bi%3A8%3Bi%3A17251%3Bi%3A9%3Bi%3A17258%3Bi%3A10%3Bi%3A1
|