Skip to content

A service which helps to easily get a login session

Notifications You must be signed in to change notification settings

kusdavletov/lazy-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazy-login

A service which helps to easily get a login session

Commands

  • npm run start
  • npm run dev

Required arguments

  • url (login page url containing login form)
  • username
  • password

Example

import requests

session = requests.session()
data = {
    'url': credential['url'],
    'username': credential['username'],
    'password': credential['password']
}
response = session.post('http://localhost:5000/api/request', data=data, timeout=3*60)

print response.json()
{u'postInfo': {u'cookie': u'*******', u'postData': {*******}, u'postUrl': u'*******'}}

To do list

  • Add captcha support

About

A service which helps to easily get a login session

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published