This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from bs4 import BeautifulSoup | |
| import pandas as pd | |
| from datetime import datetime | |
| URL = "https://fids.airport.ir/1/اطلاعات-پرواز-فرودگاه-شيراز" | |
| HEADERS = { | |
| "User-Agent": "Mozilla/5.0", | |
| "Accept-Language": "en-US,en;q=0.9" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import sqlite3 | |
| import time | |
| from datetime import datetime, timedelta | |
| # | |
| # تنظیمات دیتابیس SQLite | |
| # | |
| conn = sqlite3.connect('crypto.db') # فایل دیتابیس ایجاد میشود | |
| cursor = conn.cursor() |