vladimirgamalyan / wiki_mcc_mnc

Mobile country code and mobile network code information from wikipedia.

Scrapes en.wikipedia.org

Wikipedia, the free encyclopedia


This is a scraper that runs on Morph. The scraper automatically grabs mcc/mnc data from wikipedia once per day. You can download the data from here.

Also, there is a tiny python script for grab the data from wikipedia and save it in json format. See the gist.

sample

Contributors vladimirgamalyan

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Python app detected  ! The latest version of Python 2 is python-2.7.14 (you are using python-2.7.9, which is unsupported).  ! We recommend upgrading by specifying the latest version (python-2.7.14).  Learn More: https://devcenter.heroku.com/articles/python-runtimes -----> Installing python-2.7.9 -----> Installing pip -----> Installing requirements with pip  Obtaining scraperwiki from git+http://github.com/openaustralia/scraperwiki-python.git@morph_defaults#egg=scraperwiki (from -r /tmp/build/requirements.txt (line 6))  Cloning http://github.com/openaustralia/scraperwiki-python.git (to revision morph_defaults) to /app/.heroku/src/scraperwiki  Collecting beautifulsoup4==4.3.2 (from -r /tmp/build/requirements.txt (line 8))  Downloading https://files.pythonhosted.org/packages/30/bd/5405ba01391d06646de9ec90cadeb3893fa355a06438966afff44531219a/beautifulsoup4-4.3.2.tar.gz (143kB)  Collecting lxml==3.4.4 (from -r /tmp/build/requirements.txt (line 9))  Downloading https://files.pythonhosted.org/packages/63/c7/4f2a2a4ad6c6fa99b14be6b3c1cece9142e2d915aa7c43c908677afc8fa4/lxml-3.4.4.tar.gz (3.5MB)  Collecting requests==2.7.0 (from -r /tmp/build/requirements.txt (line 10))  Downloading https://files.pythonhosted.org/packages/26/ff/c71b3943bebdd9f7ceb9e137296370587eb0b33fe2eb3732ae168bc45204/requests-2.7.0-py2.py3-none-any.whl (470kB)  Collecting dumptruck>=0.1.2 (from scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading https://files.pythonhosted.org/packages/15/27/3330a343de80d6849545b6c7723f8c9a08b4b104de964ac366e7e6b318df/dumptruck-0.1.6.tar.gz  Installing collected packages: dumptruck, requests, scraperwiki, beautifulsoup4, lxml  Running setup.py install for dumptruck: started  Running setup.py install for dumptruck: finished with status 'done'  Running setup.py develop for scraperwiki  Running setup.py install for beautifulsoup4: started  Running setup.py install for beautifulsoup4: finished with status 'done'  Running setup.py install for lxml: started  Running setup.py install for lxml: still running...  Running setup.py install for lxml: finished with status 'done'  Successfully installed beautifulsoup4-4.3.2 dumptruck-0.1.6 lxml-3.4.4 requests-2.7.0 scraperwiki   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running...

Data

Downloaded 10 times by vladimirgamalyan hl4hck MikeRalphson akowal Swabuu

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (225 KB) Use the API

rows 10 / 2514

country countryCode operator mccmnc status brand
Test networks
Test Network
00101
operational
TEST
Abkhazia
GE-AB
Aquafon JSC
28967
operational
Aquafon
Abkhazia
GE-AB
A-Mobile LLSC
28988
operational
A-Mobile
Afghanistan
AF
Afghan Wireless Communication Company
41201
operational
AWCC
Afghanistan
AF
Telecom Development Company Afghanistan Ltd.
41220
operational
Roshan
Afghanistan
AF
MTN Group Afghanistan
41240
operational
MTN
Afghanistan
AF
Etisalat Afghanistan
41250
operational
Etisalat
Afghanistan
AF
WASEL Afghanistan
41255
operational
WASEL
Afghanistan
AF
Afghan Telecom
41280
operational
Salaam
Afghanistan
AF
Afghan Telecom
41288
operational
Salaam

Statistics

Average successful run time: 2 minutes

Total run time: 1 day

Total cpu time used: about 1 hour

Total disk space used: 318 KB

History

  • Auto ran revision f9c7bd85 and completed successfully .
    2514 records added, 2514 records removed in the database
    1 page scraped
  • Auto ran revision f9c7bd85 and completed successfully .
    2514 records added, 2514 records removed in the database
    1 page scraped
  • Auto ran revision f9c7bd85 and completed successfully .
    2514 records added, 2514 records removed in the database
  • Auto ran revision f9c7bd85 and completed successfully .
    2514 records added, 2514 records removed in the database
    18 pages scraped
  • Auto ran revision f9c7bd85 and completed successfully .
    2514 records added, 2514 records removed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

wiki_mcc_mnc / scraper.py