Skip to content

Commit

Permalink
added images and modified README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanirl committed Aug 22, 2020
1 parent 7567467 commit 2d8ebcb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data
##### Where each JSON file might contain data that looks like:

<p>
<img src="img/json_file_example.png" alt="Json Example" width="95%">
<img src="img/json_file_example.png" alt="JSON Example" width="95%">
</p>
Only tested on macOS with python3.

Expand Down Expand Up @@ -71,7 +71,26 @@ For more filters, check out the 'FILTERS.md' file.

For craigslistscraper to function properly you **NEED** to run it inside of ```if __name__ == '__main__'``` because of a multiprocessing error that occurs if you don't, this will be fixed in a future update.

If your using this scraper to look at car data I recommend putting ```car_data=True``` at the end of foo in the example above as it'll give more complete json data which is easier to work with when converting to csv files.
If your using this scraper to look at car data I recommend putting ```car_data=True``` at the end of foo in the example above, as it'll give more complete json data which is easier to work with when converting to csv files.

## Analyzing

Data can easily be converted to **CSV**

<p>
<img src="img/csv_screenshot.png" alt="CSV Example" width="95%">
</p>

This data can then be analyzed, some examples include:

<p>
<img src="img/price_year_screenshot.png" alt="CSV Example" width="95%">
</p>

<p>
<img src="img/price_odometer_screenshot.png" alt="CSV Example" width="95%">
</p>


<!-- LICENSE -->
## License
Expand Down
Binary file added img/csv_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/price_odometer_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/price_year_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def main():
"""

cities = ['minneapolis', 'austin']
filters = ['&postedToday=1']
filters = ['&postedToday=0']

# some examples of what can be done
bmw_search = Searches('bmw', cities, 'cto', filters)
bmw_search = Searches('bmw', cities, 'cto', filters, car_data=True)
# audi_search = Searches('audi', 'cto', filters)
# iphone_search = Searches('iphone', 'ela', filters)

Expand Down

0 comments on commit 2d8ebcb

Please sign in to comment.