Python request with selenium auth
The essence of the problem is that there is a website where authorization is done through Google. To log in, I use Selenium, and after authorization, I want to use it and make requests through the requests library, but the cookies alone are not enough. I checked locally that for the session to work, Network and Local Storage need to be present. A solution to this problem is needed, as using Selenium constantly is resource-intensive.
Client's review of cooperation with Yaroslav Zhomiruk
Python request with selenium authThe task was completed quickly, efficiently, and exactly as requested.
Freelancer's review of cooperation with Sergey Voloschuk
Python request with selenium authClear and understandable task, correct questions, the project was completed quickly and without delays. I recommend Serhiy for collaboration!
-
489 4 0 I can solve your task. I made a few test requests – indeed, it gets blocked with code 401. But if you pass the session data, which can be intercepted via Selenium, you can make requests through the requests library. I don't know how long the token remains active, but for at least 20 minutes I used it without any blocks.
-
2240 82 1 2 Good evening, I am interested in your project. Please write in private messages, I will connect via AnyDesk (for example) and see what can be done. If it works out - we will start the project.
-
759 3 1 Good day!
I would be happy to help with the implementation of your project!
I have worked with parsing and Selenium for a very long time and have extensive experience in using them. It would be fashionable to try to authenticate using Google OAuth2 API and then use sessions for further actions.
I am ready to discuss the details in private messages.
-
3631 17 0 Hello! 👋
I am ready to help solve your problem! 🚀
What I offer:
⚡An effective solution for transferring a session from Selenium to requests, including cookies, Local Storage, and Network.
⚡Optimization to avoid excessive use of Selenium and reduce resource consumption. ⚙️
⚡Reliable work with authorization through Google.
…
I guarantee a fast and quality implementation so that your project runs smoothly. Let's discuss the details and find the best solution! 😊
Best regards,
Andriy!
-
211 Hello, I can solve your problem, let's discuss the details in private messages.
-
Вітаю. Не погано було б вказати сайт, для його аналізу та перегляду.
-
Можете уточнити, що за сайт? Поки що складно зрозуміти, чи генерується там токен на певний період, чи вже є існуючий ID користувача. Також не зрозуміло, як налаштований Nginx на сайті . Завдання може виявитися як дуже простим, так і надзвичайно складним.
-
Current freelance projects in the category Python
Mailing to groups
33 USD
Need software that will connect to a Telegram session, enter Telegram groups, and send messages that it is instructed to. Python, Bot Development ∙ 12 hours 1 minute back ∙ 21 proposals |
Build a customer classification model1. There is client data in Mongo/SQL (approximately 20,000 entries with raw data). 2. It is necessary to build features and a classification model of clients into behavioral groups based on this data. 3. The project should be completed in Python. AI & Machine Learning, Python ∙ 1 day 15 hours back ∙ 30 proposals |
IT Automation of VAT Reporting
223 USD
It is necessary to develop a system for automating the transfer of sales data from the CRM to the accounting system Wafeq. The system should import bank and payment reports, automatically reconcile payments with invoices, generate invoices for VAT reporting, and minimize manual… AI & Machine Learning, Python ∙ 1 day 20 hours back ∙ 41 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 2 days 8 hours back ∙ 40 proposals |
Automatic video posting on social media according to a scheduleTechnical Assignment (TA) Automatic video publication on social media according to a scheduleProject Description A script/bot (Python preferred, or any other solution of your choice — the main thing is stability and ease of maintenance) is needed, which automatically publishes… Python, Bot Development ∙ 2 days 20 hours back ∙ 59 proposals |