Bu Python uygulaması, sizin istediğiniz eşik fiyatın altına düşen uçuşları size mail olarak gönderir. Verileri https://www.ucuzabilet.com/ sitesinden çekmektedir ve belirli aralıklarda bu işlemi tekrar ettirebilirsiniz.
-
Kütüphanelerin Yüklenmesi:
- Projeyi çalıştırmadan önce gerekli kütüphaneleri yükleyin.
pip install -r requirements.txt
- Projeyi çalıştırmadan önce gerekli kütüphaneleri yükleyin.
-
E-posta Ayarları:
send_mail
fonksiyonunda e-posta gönderme işlemi yapılmaktadır. Bu kısmı kendi e-posta bilgilerinizle güncelleyin.- Burada dikkat edilmesi gereken nokta gönderici Google hesabınıza gidip 2 adımlı doğrulamayı aktif edip arama yerine uygulama anahtarı yazıp şifre almanız gerekir. 16 haneli bu şifreyi burada kullanabilrisiniz. Mail hesabınızın şifresini yazmanız hata verecektir.
- Güvenlik nedeniyle e-posta ve şifrenizi doğrudan kod içinde tutmaktan kaçının. Gerekirse çevresel değişkenler veya başka bir güvenli yöntem kullanın.
-
Uçuş Bilgisi Alma:
ucuzabilet_fiyatlari_al
fonksiyonunda hangi tarihler arasındaki uçuşları almak istediğinizi belirtin.nereden
,nereye
,b_tarih
,bit_tarih
,istenilen_max_fiyat
gibi değişkenleri girmeniz gerekir.
- Konsol ekranında programı çalıştırın.
python run.py
- Kodunuzu ücretsiz bir python editörde 7/24 ücretsiz çalıştırın. Bunun için > https://www.pythonanywhere.com/ ziyaret edebilirsiniz.
This Python application e-mails you flights that fall below your desired threshold price. It pulls the data from https://www.ucuzabilet.com/ and you can repeat this process at certain intervals.
-
Installing Libraries:
- Install the necessary libraries before running the project.
pip install -r requirements.txt
- Install the necessary libraries before running the project.
-
Email Settings:
- Sending e-mail is done in the
send_mail
function. Update this section with your own email information. - The point to note here is that you must go to your sender's Google account, activate 2-step verification, type the application key in the search field and get the password. You can use this 16-digit password here. Typing your email account password will give an error.
- For security reasons, avoid keeping your email and password directly in the code. Use environmental variables or another safe method if necessary.
- Sending e-mail is done in the
-
Getting Flight Information:
- In the
cheapabilet_fiyatlari_al
function, specify the flights between which dates you want to buy. - You need to enter variables such as
from
,where to
,b_date
,bit_date
,desired_max_price
.
- In the
- Run the program on the console screen.
python run.py
- Run your code in a free python editor 24/7 for free. For this, you can visit > https://www.pythonanywhere.com/.