A script to grab data from the Mozscape API. Requires Python ≥ 3.2.
Pyscape is an open-source Python library for accessing the Moz API. The latest version is a complete rewrite focusing on improving the functionality of Pyscape as a library. You'll get the most out of this tool by getting paid credentials for the Moz API, but it will work with free credentials as well.
(Mostly new) features:
pip install pyscape-client
.In order to use this tool you'll need to create a file called keys.json
in the project folder. The content of the file should be your Moz API access id and secret key. The format of the file should be as follows:
{
"access_id": "xxxxxx-xxxxxxxxxx",
"secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Once you've done that, invocation of the pyscape-cli.py is as follows:
python pyscape-cli.py [input.txt] [output.csv]
...where input.txt is a text file with a list of URLs, one per line.
To use the library, install it with pip:
pip install pyscape-client
The library is only tested with Python 3.4. I make no guarantees that it will work with earlier versions.
Version | Tag | Published |
---|---|---|
2015.03 | 8yrs ago | |
2015.02b2 | 8yrs ago | |
2015.02b1 | 8yrs ago |