This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

lib to access/use steam web pages (stuff not exposed via API)

Project Description

Steamweb

steamweb is a python library to access/use steam web pages (stuff not exposed via the API, for the API, use smiley/steamapi)

Installation

pip install steamweb

Requirements

  • pycrypto>=2.6.1
  • requests>=2.7.0
  • future>=0.14.3 (python 2.x)

Usage

from steamweb import SteamWebBrowser
swb = SteamWebBrowser('YourSteamUsername', 'YourSteamPassword')
if not swb.logged_in():
    swb.login()
if swb.logged_in(): print 'Yay!'
r = swb.get('https://store.steampowered.com/account/')
# r is a requests.Response object

There is a subclass SteamWebBrowserCfg that includes basic configuration file handling and will ask for your Steam credentials when first used. You may also create a config file manually if you wish (~/.config/SteamWebBrowser/config.cfg):

[steamweb]
username = YOURSTEAMUSERNAME
password = YOURSTEAMPASSWORD

Then use SteamWebBrowserCfg without credentials in your code:

from steamweb import SteamWebBrowserCfg
swb = SteamWebBrowserCfg()
if not swb.logged_in():
    swb.login()
if swb.logged_in(): print 'Yay!'
r = swb.get('https://store.steampowered.com/account/')
# r is a requests.Response object

The subclass SteamWebBrowserTk inherits from SteamWebBrowserCfg (so it has configfile support too) and provides a simple Tkinter UI for presenting captcha images to the user.

Implementations

Release History

Release History

This version
History Node

0.6

History Node

0.5

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
steamweb-0.6-py2.py3-none-any.whl (11.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Nov 30, 2015
steamweb-0.6.tar.gz (10.6 kB) Copy SHA256 Checksum SHA256 Source Nov 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting