ece-mohammad / B.O.G-basic-name-search-tool

Birds of Gaza basic search tool, automates searching for martyred children by name in multiple sites.
MIT License
1 stars 0 forks source link

airwars.org #2

Closed ece-mohammad closed 7 months ago

ece-mohammad commented 10 months ago

Add https://airwars.org/

Add https:://airwars.org to the tool's URL search list.

Brief

The website has an incidents archive that can be searched and filtered by:

The search functionality uses the previous filters and displays all incidents that match them.

A search query can be constructed by setting setting the following search filters in the URL

filter URL filter Value
Belligerent belligerent israeli-military
Country country the-gaza-strip
Start date start_date 2023-10-07
Search search {name}

name must be URL encoded and spaces can be replaced by dashes -

Names can be looked up using the following pattern: https://airwars.org/civilian-casualties/?belligerent=israeli-military&start_data=2023-10-07&country=the-gaza-strip&search={name}

Strategy

  1. construct the search query using the search query template
  2. grab the result page
  3. search the page source for the name
ece-mohammad commented 10 months ago

@smashah has already done this, but I added it to complete the URL search list.