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.
-
2264 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.
-
823 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.
-
3714 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
A bot needs to be created in Telegram for subscription payment.
45 USD
A bot needs to be created in Telegram where users can subscribe for access to the webcams located in the yard. Organize payment for two types of subscriptions (monthly and daily) in the bot. The bot should automatically check the payment and then provide access links. Python, Bot Development ∙ 11 hours 27 minutes back ∙ 62 proposals |
Python / Network Engineer: Network optimization of the bot (WAF, Connection Pooling, Asyncio)Simplified version! Please respond only if you understand and are knowledgeable. About the project: An automated bot for sniping. The basic business logic (parsing, authorization, assembling JSON/XML packages) is already ready and works on Python. The target environment is Linux… Python, Data Parsing ∙ 13 hours 56 minutes back ∙ 14 proposals |
Parsing and classification of a large array of imagesIt is necessary to implement a project for collecting and structuring a large array of architectural images from open web sources.The task includes: automated collection of images; uploading files in the highest available quality; classification of images by categories:… Python, Data Parsing ∙ 18 hours 26 minutes back ∙ 30 proposals |
Business logic of the platform: class confirmation, attendance control, and lesson history (DjangoRefinement of the business logic of the educational platform: lesson confirmation, attendance control, and lesson history (Django + React) A complete system for lesson confirmation, attendance control, and storage of confirmation history needs to be implemented. Important… Python ∙ 2 days 23 hours back ∙ 29 proposals |
Improvement of the administrative panel of the educational platform (Django + React)Improvement of the administrative panel of the educational platform (Django + React) Project description: There is an existing educational platform (marketplace, similar to Preply), developed on Django + React. It is required to enhance the existing administrative panel and… Python, Web Programming ∙ 4 days 20 hours back ∙ 58 proposals |