My bots for selenium webdriver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
710 B

import requests
from BeautifulSoup import BeautifulSoup
from selenium import webdriver
url = 'https://www.smule.com/sudnitsina/followers'
res = requests.get(url)
soup = BeautifulSoup(res.content.decode('utf-8'))
followers = [i.contents[0] for i in soup.find('div', 'profile-content-block').findAll('a')]
url = 'https://www.smule.com/sudnitsina/following'
res = requests.get(url)
soup = BeautifulSoup(res.content.decode('utf-8'))
following = [i.contents[0] for i in soup.find('div', 'profile-content-block').findAll('a')]
my_list = list(filter(lambda x: x not in followers, following))
driver = webdriver.Chrome()
for i in my_list:
driver.get("https://www.smule.com/"+i)
raw_input(i)
#print my_list