online python
Try this https://repl.it/languages/python3
online python compiler
Use this site
https://repl.it/languages/python3
online python compiler
Use repl.it!
https://repl.it/languages/python3
online python compiler
Use Repl.it "Believe me It's Best"
linK: https://repl.it/languages/python3
online python compiler
This is the best online compler for python which I've used.
Probably you will find it on the top of your search resluts too.
https://www.programiz.com/python-programming/online-compiler/
python code online
import time
import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
usr = "<your_facebook_email_address>"
pwd = "<your_facebook_password>"
url = "https://mobile.facebook.com/story.php?story_fbid=10156391722455952&id=157851205951"
driver = webdriver.Chrome('/Users/zero/Documents/GitHub/SentimentAnalysis/chromedriver')
driver.get(url)
time.sleep(1)
if driver.find_element_by_xpath('//*[@id="viewport"] /div/div[3] /div/div[2]
/div/a'):
driver.find_element_by_xpath('//*[@id="viewport"] /div/div[3] /div/div[2]
/div/a').click()
elem = driver.find_element_by_id("m_login_email")
elem.send_keys(usr)
elem = driver.find_element_by_id("m_login_password")
elem.send_keys(pwd)
elem.send_keys(Keys.RETURN)
hasLoadMore = True
while hasLoadMore:
time.sleep(1)
try:
if driver.find_element_by_xpath('//*[@id="viewport"] /div/div[4] /div/div/div/div/div/div[2] /div/div/div[5] /*[@class="async_elem"]
/a'):
driver.find_element_by_xpath('//*[@id="viewport"] /div/div[4] /div/div/div/div/div/div[2] /div/div/div[5] /*[@class="async_elem"]
/a').click()
except:
hasLoadMore = False
users_list = []
users = driver.find_elements_by_class_name('_2b05')
for user in users:
users_list.append(user.text)
i = 0
texts_list = []
texts = driver.find_elements_by_class_name('_2b06')
for txt in texts:
texts_list.append(txt.text.split(users_list[i]
))
i += 1
comments_count = len(users_list)
for i in range(1, comments_count):
user = users_list[i]
text = texts_list[i]
print("User ",user)
print("Text ",text)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us