Login to a website using Python thetaranights.com Submitted by bhishan on August 3, 2018 at 6:57 PM in programming 1 comment 1
asdfasdf wrote on August 4, 2018 at 12:04 AM What a waste to spin up a browser and parse through HTML. Just grab the method, action URL and fields you need and do something like this: (let ((cookies (make-instance 'drakma:cookie-jar))) (drakma:http-request "https://website.org/login" :method :post :cookie-jar cookies :parameters '(("username" . "foo") ("password" . "bar")))) Now use :cookie-jar cookies for every other request you make in the let. Permalink 1
asdfasdf wrote
What a waste to spin up a browser and parse through HTML. Just grab the method, action URL and fields you need and do something like this:
Now use
:cookie-jar cookies
for every other request you make in thelet
.