Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid URL #39

Open
GSCDNF opened this issue Jun 24, 2017 · 6 comments
Open

Invalid URL #39

GSCDNF opened this issue Jun 24, 2017 · 6 comments

Comments

@GSCDNF
Copy link

GSCDNF commented Jun 24, 2017

When I run, it report The requested URL "http://%5bNo%20Host%5d/ip.php", is invalid.

@GSCDNF
Copy link
Author

GSCDNF commented Jun 24, 2017

2017-06-24 10:51:15,302 - INFO: [17/100] Testing proxy: ('104.153.47.241:1257', None)
2017-06-24 10:51:49,045 - INFO: [17/100] Proxy using IP: Invalid URL
The requested URL "http://%5bNo%20Host%5d/ip.php", is invalid.
Reference #9.c6c78f18.1498315910.2588d96
2017-06-24 10:52:19,196 - ERROR: [17/100] Proxy Time-out: ('104.153.47.241:1257', None)

@bommels
Copy link
Member

bommels commented Jun 24, 2017

What does your config.py look like?

EDIT: I mean run.py

@GSCDNF
Copy link
Author

GSCDNF commented Jun 24, 2017

What is that?

@bommels
Copy link
Member

bommels commented Jun 25, 2017

Where you set the URL

@bommels bommels closed this as completed Jun 27, 2017
@GSCDNF
Copy link
Author

GSCDNF commented Jun 28, 2017

import time, threading

from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait

from utils import import_proxies_from_file, get_user_agent
from bot import transfer_session
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

def add_to_cart(driver, cc='CA'):
if cc == 'US':
url = 'http://www.adidas.com/on/demandware.store/Sites-adidas-US-Site/en_US/Cart-MiniAddProduct?pid=BA8561_560&masterPid=BA8561&Quantity=1&ajax=true'
else:
url = 'http://www.adidas.ca/on/demandware.store/Sites-adidas-CA-Site/en_CA/Cart-MiniAddProduct?pid=BB0945_560&masterPid=BB0945&Quantity=1&ajax=true'

driver.get(url)
return url

@bommels
Copy link
Member

bommels commented Jun 28, 2017

Can you show me your first 10 lines of run.py?

@bommels bommels reopened this Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants