Cmg Refresh Werknl Token Actor
Pricing
Pay per usage
Go to Apify Store
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Synthwave Solutions
Maintained by Community
Actor stats
0
Bookmarked
1
Total users
1
Monthly active users
a year ago
Last modified
Categories
Share
Werk.nl Search Service
This service allows searching and extracting candidate profiles from Werk.nl using Playwright for browser automation.
Features
- Automated Search: Searches for candidate profiles in Werk.nl based on specific criteria.
- Profile Extraction: Extracts detailed information from candidate profiles.
- Two-Factor Authentication with Telegram: Handles the 2FA process through a Telegram bot.
- Firebase Integration: Stores and manages extracted data.
- Candidate Ranking: Evaluates and ranks candidates according to predefined criteria.
Technologies Used
- Playwright: Browser automation library.
- Apify SDK: Toolkit for building Python scrapers.
- Firebase: Cloud database for data storage.
- Telegram Bot API: For handling two-factor authentication.
Setup
- Clone this repository
- Copy
.env.exampleto.envand configure environment variables - Install dependencies with
pip install -r requirements.txt - Run the service with
python -m src
Two-Factor Authentication with Telegram
This service includes support for two-factor authentication (2FA) through a Telegram bot. When Werk.nl requests a two-factor authentication code during login, the service:
- Sends a message to the user through Telegram informing that 2FA is required.
- Requests an authentication code through the Telegram bot API.
- Waits to receive the code through a streaming connection.
- Enters the code in Werk.nl's 2FA form.
- Notifies the user when login is successful.
Telegram Bot Setup
To use this functionality, you need to:
- Create a Telegram bot using BotFather.
- Implement a bot API that supports the following endpoints:
/2fa: For requesting a 2FA code./request_two_factor/{id}: For receiving the code through streaming./send_message: For sending messages to the user.
- Configure the environment variables
TELEGRAM_BOT_API_URLandTELEGRAM_USER_IDin your.envfile.
2FA Workflow
- The service attempts to log in to Werk.nl with the provided credentials.
- If Werk.nl requests 2FA, the service sends a message to the user through Telegram.
- The user receives the authentication code (via SMS, email, etc.) and provides it to the Telegram bot.
- The service receives the code through the bot API and enters it in Werk.nl.
- Login is completed and the service continues with the search process.