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}")
Metadata
Release files for vy-gen 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vy_gen-1.0.1.tar.gz | 42.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vy_gen-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.5 kB
Release files / vy_gen-1.0.1.tar.gz
| Download URL | vy_gen-1.0.1.tar.gz |
|---|---|
| Size | 42.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e1b5d63c1afa1003a3782cd8b2ff88f52d6ae35b2ea2d6e6364d7f813136f26
|
|
BLAKE2b-256 checksum How to use checksums |
2aa22402d0cb89889a6224b5b20851797149d733a6d1b081b4d0782642cd7e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / vy_gen-1.0.1-py3-none-any.whl
| Download URL | vy_gen-1.0.1-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b288b361619827139ba1be6d9f2f737508ef3ee45cc255356a9d8980cbff823
|
|
BLAKE2b-256 checksum How to use checksums |
23c6092be41ca455927b81c973a7387f8bb604f99db6a6b67b2a685448d3f088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|