0

Here is my code:

headers = {
            "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
            "referer": "https://steamcommunity.com/profiles/{}/inventory".format(options['steamid'])
        }
url = 'https://steamcommunity.com/inventory/{}/{}/{}?l={}&count={}&start_assetid={}'.format(options['steamid'], options['appid'], options['contextid'], options['language'], options['count'], last_assetid)

proxy = self.proxy()
proxies = {
          'http': proxy,
          'https': proxy
}
req = requests.get(url=url, headers=headers, proxies=proxies, timeout=self.timeout)

Proxies (when printed): {'http': 'https://91.188.243.130:9049:xxx:xxx', 'https': 'https://91.188.243.130:9049:xxx:xxx'}

Error which I get: Failed to parse: 91.188.241.137:9049:xxx:xxx

2
  • What is xxx:xxx supposed to be? Commented Jan 26, 2019 at 11:52
  • @SimonF proxy pass and login Commented Jan 26, 2019 at 11:53

1 Answer 1

2

According to the documentation username and password is passed to a proxy like this

proxies = {'http': 'http://user:[email protected]:3128/'}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.