Updates from January, 2017 Toggle Comment Threads | Keyboard Shortcuts

  • yalamber 10:32 am on January 10, 2017 Permalink | Reply
    Tags: Online Learning, VR   

    Learning is fun at udacity. learning VR Development. Hope it goes well.

     
  • yalamber 10:29 am on January 10, 2017 Permalink | Reply
    Tags: Python   

    Get Cookies from Requests in Python 

    import requests
    
    username = ""
    password = ""
    login_url = "https://www.example.com/login/"
    
    def main():
    headers = {
    'Host': 'www.example.com',
    'Origin': 'https://www.example.com/login/',
    'Referer': 'https://www.example.com/login/',
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36'
    }
    s = requests.Session()
    s.headers = headers
    result = s.get(login_url)
    print s.cookies.get_dict()
    
    if __name__ == '__main__':
    main()
    
    
     
  • yalamber 7:33 pm on January 3, 2017 Permalink | Reply  

    Happy new year, New products to build, New Things to learn.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel