Git Product home page Git Product logo

data-extraction's Introduction

data-extraction

Common required modules

pip install pandas
pip install requests
pip install configparser

Social Media

Facebook

get_facebook.py

Pre requisite

  1. Generate the bearer token
https://graph.facebook.com/oauth/access_token
  ?client_id=<your-client-id>
  &client_secret=<your-client-secret>
  &grant_type=client_credentials
  1. Install facebook modules
pip install facebook-sdk

References

https://developers.facebook.com/docs/places/web/search/ https://developers.facebook.com/docs/graph-api/reference/place-information/

Google Places

get_google.py The Google Places API is a great resource for mining data for a giving location. The code in get_google.py will demonstrate the use of this API to retrieve data using the nearbysearch which returns all places in the areas around the passed in geo location coordinates

Pre requisite

  1. Get API Key https://developers.google.com/places/web-service/get-api-key

  2. Test your API Key https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&key=<API_KEY>

References

https://developers.google.com/places/web-service/intro

Twitter

From Files

Text based PDF

pdf_extract.py PyPDF2 is the python module used for this code sample. Will update this section when I try out other modules and put through some comparisons.

  1. Install PyPDF2 module
pip install PyPDF2

OCR Image

ocr_extract.py Have had some good success using the pytesseract module for extracting text from an OCR images. Happy to take feedback on this module for anyone who has had issues with this

From The WEB

Web Scrapping

Google Image Search

get_google-images.py The code in get_google-images.py retrieves Google Image Search results and downloads them into a downloads directory

Pre requisite

  1. Install Google images download modules
pip install google-images-download

data-extraction's People

Contributors

jaanakaaree avatar neil-mbie avatar

Stargazers

 avatar

Watchers

James Cloos 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.