GithubHelp home page GithubHelp logo

ods-scrapper's Introduction

Open data soft scrapper

This python package gives some basic tools to easily collect information on open data soft portals (SaaS):

  • Number of federated or non-federated data
  • Themes
  • Data producers

Installation

You'll need these librairies.

  • Pandas:
pip install pandas
  • Requests
pip install requests
  • Seaborn & Matplotlib
pip install matplotlib
pip install seaborn
  • tqdm (optional)
pip install tqdm

Scrappe your own portal

from ScrappingPackage.opendatasoftscrapper import Opendatasoftscrapper
url = "https://data.regionreunion.com"
ods_scrapper = Opendatasoftscrapper(lien =  lien)
results = ods_scrapper.get_all_results()

The method get_all_results() returns a dict that holds the extracted information.

You can use bar_plot_fed() from Opendatasoftvisualisations class to make plots out of these results and save theme.

from ScrappingPackage.opendatasoftvisualisations import Opendatasoftvisualisations
ods_vis = Opendatasoftvisualisations(results)
ods_vis.bar_plot_fed(save = True, title = "bar plot 1" )
ods_vis.bar_plot_themes(save = True,title = "bar plot 2")

Quick test

If you want to test the program immediately, you can run : python3 main.py

Output

ods-scrapper's People

Contributors

ismaelsaid avatar

Stargazers

Pierre Jaffuer avatar

Watchers

 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.