yzyio / adidas-multi-session

(Python) Program to simulate multiple sessions on adidas queue pages.
Other
92 stars 20 forks source link

Invalid URL #39

Open GSCDNF opened 7 years ago

GSCDNF commented 7 years ago

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

GSCDNF commented 7 years ago

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 commented 7 years ago

What does your config.py look like?

EDIT: I mean run.py

GSCDNF commented 7 years ago

What is that?

bommels commented 7 years ago

Where you set the URL

GSCDNF commented 7 years ago

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 commented 7 years ago

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