Giter Club home page Giter Club logo

mics's Introduction

MICSV

MICS SURVEY: automate MICS dataset download

TODO

  • Login and download
  • Refine popup deflection

Install

pip3 install micsv

Required libs

pip3 install bs4
pip3 install selenium
# and install whatever libs missing on your machine...

Run

In terminal

python3

In python

from micsv import run_mics
run_mics(versions = [], overwrite = False, save_to = ".", sleep = 5)
  • versions: a list of MICS versions to download, empty means download all from MICS2 to MICS6

  • overwrite: overwrite exising file in save_to directory

  • save_to: where to save the file, default to current working directory. Perhaps better to do

    import os
    os.chdir('path/to/where/to/save')
    run_mics()
  • sleep: required, sometime MICS website load too slow and needed time to solve reCaptcha.

  • This program will open a new browser window (Firefox in this case).

  • Use your username, password, pass the reCaptcha and click login (then make no more movement in the browser please).

  • The code will wait until MICS logged in successfully (5 minutes timeout) and automatically redirect to surveys site.

Example outputs

Processing page 1
Processing page 2
Processing page 3
Processing page 4
Processing page 5
Processing page 6
There are 222 file(s) detected.
The-Gambia-MICS6-Datasets.zip is already existed.
Skip downloading The-Gambia-MICS6-Datasets.zip

mics's People

Contributors

kklot avatar

Watchers

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