American Airlines scraper in Python
Overview
This project is an open-source tool developed in Python for extracting product information from American Airlines. It's designed to be easy to use, making it an ideal solution for developers looking for American Airlines product data.
Features
- Full search support
- Extracts detailed product information from American Airlines
- Implemented in Python just because it's popular
- Easy to integrate with existing Python projects
Install
$ pip install pyaair
Examples
fromDir="miami"
toDir="texas"
airports1=pyaair.airports(fromDir,"")
airports2=pyaair.airports(toDir,"")
f = open("./airports1.json", "w")
f.write(json.dumps(airports1))
f.close()
f2 = open("./airports2.json", "w")
f2.write(json.dumps(airports2))
f2.close()
originAirport = "GYE"
destinationAirport = "MIA"
departDate = "2024-05-01"
returnDate = "2024-05-04"
passengers = 1
#locale: where you are located, probably for increasing the price or is just for statistics, I DON'T KNOW, do not say that I said this field is for incresing the price, it's jut a theory
locale = "es_EC"
flights=pyaair.flights(locale, originAirport, destinationAirport, departDate, returnDate, passengers,"")
f2 = open("./flights.json", "w")
f2.write(json.dumps(flights))
f2.close()
fromDir = "new york"
toDir = "galapagos"
departDate = "2024-05-01"
returnDate = "2024-05-04"
passengers = 1
#locale: where you are located, probably for increasing the price or is just for statistics, I DON'T KNOW, do not say that I said this field is for incresing the price, it's jut a theory
locale = "es_EC"
airports1=pyaair.airports(fromDir,"")
airports2=pyaair.airports(toDir,"")
flights=pyaair.flights(locale, airports1[0]["code"], airports2[0]["code"], departDate, returnDate, passengers,"")
f2 = open("./flights.json", "w")
f2.write(json.dumps(flights))
f2.close()
Metadata
Release files for pyaair 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyaair-0.0.0.tar.gz | 4.3 kB | Without provenance | Details for pyaair-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyaair-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyaair-0.0.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / pyaair-0.0.0.tar.gz
| Download URL | pyaair-0.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bb529e7da6e514f52c264ee3e813ea279abdcf36d1b152d39ad804a97780121
|
|
BLAKE2b-256 checksum How to use checksums |
061c7bffc017be9febc047200577dca4cec8ac8549befa40b8aa015dbc88f91e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.2
|
Release files / pyaair-0.0.0-py3-none-any.whl
| Download URL | pyaair-0.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0371b57af522ae4efd2e2e3239a2267884bf8ced95fd93ab8f3451ea41b01d5b
|
|
BLAKE2b-256 checksum How to use checksums |
b7f078aeb70e170860e5971878e2e32698df7d1dd4be468d8c115680ce36ce51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.2
|
Security for pyaair 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.