Automate the creation of VY.NO accounts to acquire Narvesen coupons.
Project description
Free Narvesen
VY is having a campaign giving out free a pastry and hot beverage to all of their users. The next step from there is pretty obvious, all we need to do is just to generate accounts to get free food!
Example of Full Web App Implementation
https://github.com/user-attachments/assets/f444eeab-de7b-4a97-9b22-093af1d2cacf
Proccess
All you have to do is just to register an account, confirm the email, and join the "Green Journey" program. This process has been automated in the original code and a package you can install.
Setup
You can install this package with pip:
pip install vy-gen
Only thing left is to implement the emails. You should have a class with the two methods shown below.
class EmailService:
def generate_email(self) -> str:
# Your implementation
email = "user@example.com"
return email
def get_verification_code(self, email: str) -> str:
# Your implementation
code = "123456"
return code
You should end up with something like this as your final script
from vy import AccountGenerator
class EmailService:
...
proxies = {
"https": f"http://..." # optional
}
email_service = EmailService()
generator = AccountGenerator(email_service, proxies=proxies)
try:
credentials = generator.generate_account()
print(f"Account created successfully!")
print(f"Email: {credentials.email}")
print(f"Password: {credentials.password}")
print(f"Account Number: {credentials.account_number}")
except Exception as e:
print(f"Failed to create account: {e}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vy_gen-1.0.1.tar.gz.
File metadata
- Download URL: vy_gen-1.0.1.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e1b5d63c1afa1003a3782cd8b2ff88f52d6ae35b2ea2d6e6364d7f813136f26
|
|
| MD5 |
b6504ec4e0c5dd22f0399e33fd3b9ef3
|
|
| BLAKE2b-256 |
2aa22402d0cb89889a6224b5b20851797149d733a6d1b081b4d0782642cd7e9c
|
File details
Details for the file vy_gen-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vy_gen-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b288b361619827139ba1be6d9f2f737508ef3ee45cc255356a9d8980cbff823
|
|
| MD5 |
ba300fc7ca0ac13af4ef66bbdbf84ed9
|
|
| BLAKE2b-256 |
23c6092be41ca455927b81c973a7387f8bb604f99db6a6b67b2a685448d3f088
|