Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
(Jun-23-2019, 12:36 AM)metulburr Wrote: I havent ever came across that error. So i cant figure out why exactly. When i run it, it inputs the string into the comment box. You can try these methods fr... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-23-2019, 02:47 AM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
(Jun-22-2019, 09:33 PM)metulburr Wrote: OK i figured it out. The elements change based on whether its clicked or not. So you have to click it to get contenteditable-root ID available. Which before i... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-22-2019, 11:52 PM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
Bump.
tried a new strategy but this seems to not work either, this is the closest to working however.
def find_comment_box(self):
try:
print("Passing URL to Browser...")
... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-22-2019, 04:48 PM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
(Jun-21-2019, 07:11 PM)metulburr Wrote: I keep coming across the same issue you have. Im too busy today to look into it deeper.thank you! |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-21-2019, 07:49 PM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-21-2019, 05:17 PM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
(Jun-21-2019, 12:22 AM)metulburr Wrote: Thats not in your code though. (im too busy to write up code myself to log in)add this for a login method:
def login(self):
# URL for google logi... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-21-2019, 01:10 AM |
|
|
Thread: Help me make a comment on youtube
Post: RE: Help me make a comment on youtube
(Jun-20-2019, 10:28 PM)metulburr Wrote: Are you trying to make a comment without being logged in? Because i dont think you can. If you click the input box, you go directly to a login screen. Its pos... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-20-2019, 11:26 PM |
|
|
Thread: Help me make a comment on youtube
Post: Help me make a comment on youtube
# imports
import random
import time
import csv
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class Commenter:
# declares variables for commentor script
def __init... |
|
caarsonr |
Web Scraping & Web Development |
14 |
5,974 |
Jun-20-2019, 10:15 PM |
|
|
Thread: Can't get method to scroll down page.
Post: RE: Can't get method to scroll down page.
(Jun-20-2019, 08:20 PM)metulburr Wrote: bg = self.browser.find_element_by_css_selector('body')
for _ in range(3):
bg.send_keys(Keys.PAGE_DOWN)
time.sleep(.5)e... |
|
caarsonr |
Web Scraping & Web Development |
5 |
4,175 |
Jun-20-2019, 09:14 PM |
|
|
Thread: Can't get method to scroll down page.
Post: RE: Can't get method to scroll down page.
(Jun-16-2019, 04:49 PM)metulburr Wrote: Expain in more detail? Do you get an error? Is it in a different window? Does it scroll at least once, or not at all? Try a timesleep right after scrolling be... |
|
caarsonr |
Web Scraping & Web Development |
5 |
4,175 |
Jun-20-2019, 06:48 PM |
|
|
Thread: Can't get method to scroll down page.
Post: RE: Can't get method to scroll down page.
(Jun-16-2019, 04:49 PM)metulburr Wrote: def find_comment_box(self):
try:
self.browser.get(self.url)
SCROLL_PAUSE_TIME = 0.5
# Get scroll height
last_height = se... |
|
caarsonr |
Web Scraping & Web Development |
5 |
4,175 |
Jun-17-2019, 09:55 PM |
|
|
Thread: Can't get method to scroll down page.
Post: Can't get method to scroll down page.
This method is supposed to find the comment box on youtube, right now, my scrolling method does not seem to be working. I can't seem to figure out why. Any ideas?
def find_comment_box(self):
... |
|
caarsonr |
Web Scraping & Web Development |
5 |
4,175 |
Jun-15-2019, 05:38 PM |
|
|
Thread: Syntax Error : I can't identify what's wrong!
Post: RE: Syntax Error : I can't identify what's wrong!
(Jun-10-2019, 05:29 AM)Yoriz Wrote: Change your try/except blocks, so the exception that happens is actually displayed
try:
...
...
except Exception as exception:
print(exception)
Thank ... |
|
caarsonr |
General Coding Help |
11 |
6,141 |
Jun-10-2019, 10:58 PM |
|
|
Thread: Syntax Error : I can't identify what's wrong!
Post: RE: Syntax Error : I can't identify what's wrong!
(Jun-10-2019, 01:36 AM)metulburr Wrote: Quote:self.url = input("Enter URL: ")
python2.x is raw_input() Either use python3.x or change all input() to raw_input()
Hey
I changed all my inputs to raw_... |
|
caarsonr |
General Coding Help |
11 |
6,141 |
Jun-10-2019, 01:48 AM |
|
|
Thread: Syntax Error : I can't identify what's wrong!
Post: RE: Syntax Error : I can't identify what's wrong!
(May-31-2019, 04:43 PM)Yoriz Wrote: Which python version are you using?I am using Python 2.7 |
|
caarsonr |
General Coding Help |
11 |
6,141 |
Jun-10-2019, 01:25 AM |
|
|
Thread: Syntax Error : I can't identify what's wrong!
Post: RE: Syntax Error : I can't identify what's wrong!
(May-31-2019, 04:18 PM)buran Wrote: Please, post the entire traceback that you get.
Take a time to read What to include in a postYou should get also IndentationError (e.g. look at lines 54-64)
Yes, ... |
|
caarsonr |
General Coding Help |
11 |
6,141 |
May-31-2019, 04:31 PM |
|
|
Thread: Syntax Error : I can't identify what's wrong!
Post: Syntax Error : I can't identify what's wrong!
# imports
import random
import time
from selenium import webdriver
class Commenter:
# declares variables for commentor script
def __init__(self):
self.error = "[!] There was an error!"
... |
|
caarsonr |
General Coding Help |
11 |
6,141 |
May-31-2019, 04:16 PM |