<commit_before>Python-API-Connector
====================
The API-Connector is a library that helps provides some useful tools for interfacing with the API  
 
See GetBackLinkdata.py GetIndexData.py and OpenAppGetIndexItemInfo.py files as examples of how to use these connectors.\

>For set up:

On Windows set PYTHONPATH in the Environmental Variables to Python-API-connector directory ie. add C:\project\lib\Python-API-Connector to the PYTHONPATH variable. This will be helpfull as then you can import in the library from another directory other wise it will cause issues with imports.

On linux, in the terminal it will look somthing like this: 
```
set PYTHONPATH=/usr/project/lib/Python-API-Connector
```

>Note: The Python Connector has been developed using Python 2.7.2.\
>To run the examples have python 2+ installed, then in terminal use >python2 somefile.py  
>This will run the script or try py to run the file.
>you need only import from  APIService.py in majesticseo_external_rpc directory 


For further information see api documentation @ https://developer-support.majestic.com/<commit_msg>formatted the Readme.md<commit_after>Python-API-Connector
====================

Use the https://majestic.com connectors to access web data from one of the largest web indexes available. 
The Majestic® search engine is mainly used to instantly provide Flow Metrics® which evaluate the any page on the Internet in scores between 0 and 100.
 

For set up:
---------------
Set PYTHONPATH in the Environmental Variables to Python-API-connector directory 

This will be helpful as then you can import in the library from another directory other wise it will cause issues with imports.

On Windows it will be somthing similar to this 
```
add C:\project\lib\Python-API-Connector` to the PYTHONPATH variable. 
```
On linux, in the terminal it will look something like this: 
```
set PYTHONPATH=/usr/project/lib/Python-API-Connector
```
Examples
-------------
There are a few examples of the API-Connector as follows:

* GetIndexItemInfo.py 
  * The GetIndexItemInfo command provides data on the number of backlinks to any web page or site, linking domains and the main topics for that page or web site
* GetBackLinkData.py 
  * GetBacklinkData will return rows of data with information about all the pages linking to a given URL or domain


Further notes  
------------------
The Python Connector has been developed using Python 2.7.2.\
To run the examples have python 2+ installed, then in terminal use >python2 somefile.py  
This will run the script or try py to run the file.

For further information see api documentation @ https://developer-support.majestic.com/


{'fraction_non_alphanumeric': 0.08292682926829269, 'fraction_numerical': 0.00525328330206379, 'mean_word_length': 4.020715630885123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6354866', 'n_tokens_mistral': 726, 'n_tokens_neox': 684, 'n_words': 351}