Coder Social home page Coder Social logo

foodndrink's Introduction

Test scripts for OSINT

These scripts pull data from several sites and then plot the locations found on a Google Map.

Usage

Requirements

The most important requirement is this script is written in Python 3.x.

Modules

  • bs4
  • geocoder
  • gmplot
  • googlemaps
  • requests

If you have PIP installed, type: pip3 install -r requirements.txt from the command line and your system should install all required modules.

Geocoding API

You will need to create a file named geocode_api_keys.py and put the following in it:

google_api_key = 'YOUR_GOOGLE_API_KEY'
bing_api_key = 'YOUR_BING_API_KEY'

Of course this means you need to go get a valid Google Developer API key for the Geocoding (https://developers.google.com/).

You also can also create a Bing API key for free at https://www.bingmapsportal.com/.

Help command Output

Ratebeer.com

$  python ratebeer.py -h
usage: ratebeer.py [-h] -u USER

Grab ratebeer user activity

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  Username to research

Yelp.com

$ python yelp_reviews.py -h
usage: yelp_reviews.py [-h] -u USER [--csv]

Grab yelp user activity

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  Username to research
  --csv                 Output to CSV

Example Output

Ratebeer.com

$ python ratebeer.py -u 105404
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/1/1/
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/2/2/
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/3/3/
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/4/4/
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/5/5/
[ ] VENUE DATA: Requesting https://www.ratebeer.com/ajax/user/105404/place-ratings/6/6/

[ ] HTML output file named ratebeer_map_105404_1539303736.html was written to disk.

Yelp.com

python yelp_reviews.py -u U4gWrMtHevbDF3Le3GBLHA
[ ] VENUE DATA: Requesting https://www.yelp.com/user_details?userid=U4gWrMtHevbDF3Le3GBLHA
[ ] Can Geocode with Google.
[ ] VENUE DATA: Requesting https://www.yelp.com/user_details?userid=U4gWrMtHevbDF3Le3GBLHA&rec_pagestart=10
[ ] Can Geocode with Google.
[ ] VENUE DATA: Requesting https://www.yelp.com/user_details?userid=U4gWrMtHevbDF3Le3GBLHA&rec_pagestart=20
[ ] Can Geocode with Google.
[ ] VENUE DATA: Requesting https://www.yelp.com/user_details?userid=U4gWrMtHevbDF3Le3GBLHA&rec_pagestart=30

[-] No review addresses found

[ ] HTML output file named yelp_map_U4gWrMtHevbDF3Le3GBLHA_1539303863.html was written to disk.

All scripts should produce HTML output files that show the geolocated content. An example is below: image of sample output

If your web page shows "For Development Purposes Only" watermarks, you will need to edit the HTML file and add your Google API key for JavaScript Maps API. Add key=YOUR_GOOGLE_API_KEY to the end of the maps.googleapis.com line like this: https://maps.googleapis.com/maps/api/js?libraries=visualization&sensor=true_or_false&key=YOUR_GOOGLE_API_KEY

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

foodndrink's People

Contributors

webbreacher avatar

Watchers

James Cloos avatar Projects by Silo Collective avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.