Giter Site home page Giter Site logo

phanimahesh / iitd-pyproxylogin Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 12.0 60 KB

A python script to login to IITD proxy servers. Born out of frustration when I couldn't login without a browser. To be used only from within IIT Delhi.

Home Page: phanimahesh.github.com/iitd-pyproxylogin

Python 100.00%

iitd-pyproxylogin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iitd-pyproxylogin's Issues

error: SSL: CERTIFICATE_VERIFY_FAILED

Let's take a moment to appreciate your work towards IITD community.

Environment:

rahul@Inspiron:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.10
Release:	16.10
Codename:	yakkety
rahul@Inspiron:~$ uname -a
Linux Inspiron 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I'm getting SSL error while running the login.py script. Found a work around by adding this in script.
source


import ssl
ssl._create_default_https_context = ssl._create_unverified_context

Now script is working fine (tested several times) and I'am sure there's nicer and safer way of getting rid of this error.

Also around line 81, I have change this
htmlsoup=soup(html)
to this
htmlsoup=soup(html, "lxml")
to get rid of this

The code that caused this warning is on line 84 of the file login.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.