Skip to content

Commit 2d8ebcb

Browse files
committed
added images and modified README.md
1 parent 7567467 commit 2d8ebcb

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data
1919
##### Where each JSON file might contain data that looks like:
2020

2121
<p>
22-
<img src="img/json_file_example.png" alt="Json Example" width="95%">
22+
<img src="img/json_file_example.png" alt="JSON Example" width="95%">
2323
</p>
2424
Only tested on macOS with python3.
2525

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

7272
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.
7373

74-
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.
74+
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.
75+
76+
## Analyzing
77+
78+
Data can easily be converted to **CSV**
79+
80+
<p>
81+
<img src="img/csv_screenshot.png" alt="CSV Example" width="95%">
82+
</p>
83+
84+
This data can then be analyzed, some examples include:
85+
86+
<p>
87+
<img src="img/price_year_screenshot.png" alt="CSV Example" width="95%">
88+
</p>
89+
90+
<p>
91+
<img src="img/price_odometer_screenshot.png" alt="CSV Example" width="95%">
92+
</p>
93+
7594

7695
<!-- LICENSE -->
7796
## License

img/csv_screenshot.png

152 KB
Loading

img/price_odometer_screenshot.png

141 KB
Loading

img/price_year_screenshot.png

142 KB
Loading

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def main():
1212
"""
1313

1414
cities = ['minneapolis', 'austin']
15-
filters = ['&postedToday=1']
15+
filters = ['&postedToday=0']
1616

1717
# some examples of what can be done
18-
bmw_search = Searches('bmw', cities, 'cto', filters)
18+
bmw_search = Searches('bmw', cities, 'cto', filters, car_data=True)
1919
# audi_search = Searches('audi', 'cto', filters)
2020
# iphone_search = Searches('iphone', 'ela', filters)
2121

0 commit comments

Comments
 (0)