weboob.browser.profiles

class weboob.browser.profiles.Android

Bases: weboob.browser.profiles.Profile

An android profile for mobile websites

setup_session(session)

Set up user agent.

class weboob.browser.profiles.Firefox

Bases: weboob.browser.profiles.Profile

Try to mimic a specific version of Firefox. Ideally, it should follow the current ESR Firefox: https://www.mozilla.org/en-US/firefox/organizations/all.html Do not change the Firefox version without checking the Gecko one!

setup_session(session)

Set up headers for a standard Firefox request (except for DNT which isn’t on by default but is a good idea).

The goal is to be unidentifiable.

class weboob.browser.profiles.GoogleBot

Bases: weboob.browser.profiles.Profile

Try to mimic Googlebot. Keep in mind there are ways to authenticate real Googlebot IPs.

You will most likely want to set ALLOW_REFERRER to False.

setup_session(session)

Set up headers for a standard Firefox request (except for DNT which isn’t on by default but is a good idea).

The goal is to be unidentifiable.

class weboob.browser.profiles.IPhone(application)

Bases: weboob.browser.profiles.Profile

An iphone profile for mobile websites and some API websites

setup_session(session)
class weboob.browser.profiles.Profile

Bases: object

A profile represents the way Browser should act. Usually it is to mimic a real browser.

setup_session(session)

Change default headers, set up hooks, etc.

Warning: Do not enable lzma, bzip or bzip2, sdch encodings as python-requests does not support it yet. Supported as of 2.2: gzip, deflate, compress. In doubt, do not change the default Accept-Encoding header of python-requests.

class weboob.browser.profiles.Weboob(version)

Bases: weboob.browser.profiles.Profile

It’s us! Recommended for Weboob-friendly websites only.

setup_session(session)
class weboob.browser.profiles.Wget(version='1.11.4')

Bases: weboob.browser.profiles.Profile

Common alternative user agent. Some websites will give you a version with less JavaScript. Some others could ban you (after all, wget is not a real browser).

setup_session(session)