Giter Site home page Giter Site logo

covid-scraper's Introduction

Covid-19 data Scraper

Scraper

Scraper is providing valuable data about covid from https://www.worldometers.info/coronavirus/. There is an option to chosoe from which country we want to obtain or update a data. All of them are converted to dataFrame and then to .csv file. This file is saved in a data folder.

Working principle

Covid-19 data in single country is stored in charts. The number of charts and type of data they contain varies by country. Entire data is saved directrly in scripts, in which they are occured in json format. The main goal was to obtain the data in way ,that one algorithm could fit to each country, that's why I chose algotithm that includes operations on strings. In general scraper splits script depending on how many times phrase 'data:' is occurred, while checking whether the data is repeated ( Linear and log scales of charts have same values of data, but they make seperate datasets in script). Labels of datasets are extracted in the same way.
Example of exctraction one dataset.

last_str = last_str.split('data:', 1)[1]
last_str = last_str.split(']', 1)[0].replace('[', '').replace(' ', '')

covid-scraper's People

Contributors

sebastianparzych 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.