Skip to content

Conversation

@atharvvvg
Copy link

  1. Flight Number Extraction:
  • Updated the core scraping logic in fast_flights/core.py to parse the data-travelimpactmodelwebsiteurl attribute.
  • Successfully extracts flight codes for both non-stop (e.g., QP-1339) and multi-stop itineraries (e.g., IX-1756, AI-2466).
  • Added a flight_code field to the Flight schema.
  1. Save to JSON File:
  • Added an --output_file argument to example.py.
  • Users can now specify a file path to save the flight search results directly as a JSON file, streamlining data collection.
  1. One-Way Flight Support:
  • The example.py script was also updated to support one-way searches by making the --return_date argument optional.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Sep 19, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Sep 19, 2025
@AWeirdDev
Copy link
Owner

oops... the new version is actually in the dev branch, the main one is actually legacy code :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants