Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.25 KB

Archdaily_Readme.md

File metadata and controls

48 lines (37 loc) · 1.25 KB

#Archdaily Capture ##What the script does The script scraps the http://www.archdaily.com/map/ page.

The results are written in GeoJSON files (YYYY-MM-DD.geojson and YYYY-MM-DD.js, the JavaScript version of the .geojson file to be used directly with Leaflet).

This script could be run monthly.

##Files ###Specific files

  • ArchdailyCapture.py
  • ArchdailyCaptor.py
  • ArchdailyGeojsonBuilder.py

###Common files

  • Captor.py
  • GeojsonBuilder.py
  • FileManager.py
  • ExitLogger.py
  • LoggerBuilder.py

###Additional Python modules

  • requests
  • lxml

###Logs

  • ./logs/archdaily.log for complete logs
  • ./logs/archdaily-exit.json for time and exit status of the last execution

##How to use the script

  1. Copy the files

  2. Create the logs folder

  3. Create the archdaily folder

  4. Run the script:

    python ArchdailyCapture.py
    

##Exit status and Errors ###Exit status

  • 0 in case of success
  • 1 in case of an InitError (if the folder ./archdaily is missing)
  • 2 in case of a RequestException (e.g. network problem, HTTP error, timeout, too many redirections, etc.)
  • 3 in case of another type of Exception

###Errors InitError: The folder ./archdaily/ is missing => You have forgotten the create an ./archdaily folder