Skip to content

Simple way for logging in any forums or websites based on requests

License

Notifications You must be signed in to change notification settings

jxltom/requests-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requests-login

Simple way for logging in any forums or websites based on requests

Features

Getting Started

  • Login forums powered by Discuz

    from requests_login.discuz_loginer import DiscuzLoginer
    cookies = DiscuzLoginer()('http://example.com', user=dict(username='username', password='password'))
  • Customized login

    from requests_login.loginer import Loginer
    query = '/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1'
    data = dict(loginfield='username', questionid='0')
    cookies = Loginer(query, data)('http://example.com', user=dict(username='username', password='password'))

TODO

  • Add redirects support

About

Simple way for logging in any forums or websites based on requests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages