import time
from lxml import etree
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import re
import requests
headers = {
'cookie': 'ttcid=b9fac8a5b4454b47b314df52177d139581; tt_scid=N7jvgqetk5VB8RzQnVQ5FHaaFYWGVMy9ku0kaRy.cOC0GA7gfrd4tsf46ydwO3Yg7f42; msToken=WJN9dikzb_WSmtekDDYjDq-rKw7cjx6Gfy9FH5lNOnIT_bq9sctOld45AhnZ62lABw0tXlgjjp4MKLHyX8G2JywduZ0pX2heQVVphFBs3Uyrt6V3QmlpcY0ElsZk4p4d1wo=',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36'
}
#判断函数
def isElementExist(self):
#print(self)
flag = True
#prin
python+selenium+douyin 批量留言互粉代码
最新推荐文章于 2024-08-04 23:47:34 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)