##Preparation
Please replace the 'PLACEHOLDER's at the top of searchquality.py before running the script.
- Go to https://console.developers.google.com/
- Create a new project
- Enable APIs if you want (optional; Custom Search API is enabled by default on a new project.)
- Go to [Credentials] page
- Click [Create credentials] and select [API key]
- Select [Server key]
- Go to https://cse.google.com/cse/all
- Create a new search engine
- Type any site to 'Sites to search' box (e.g. www.example.com) You cannot leave this box blank, but the value can be removed later.
- Type a search engine name (e.g. entireweb) and click [CREATE]
- Click 'Control Panel'
- You will see the item you added at step 3. in the 'Sites to search' section. Now you can delete it.
- 'Sites to search' section has a dropdown list and its default value should be 'Search only included sites'. Change this to 'Search the entire web but emphasize included sites'.
- You can get a Search engine ID by clicking the [Search engine ID] button in the 'Details' section.
- Go to https://datamarket.azure.com/dataset/bing/search
- Sign up a free plan or buy a subscription
- Go to [My Account] tab and check [Primary Account Key]
- Uncheck 'I agree that Microsoft may use my email address to provide ...' if you want.