<commit_before>Node.js - google
=====================

This module allows you to search google by scraping the results. It does NOT use the Google Search API. PLEASE DO NOT ABUSE THIS. The intent of using this is convenience vs the cruft that exists in the Google Search API.



Installation
------------

    npm install google



Example
-------

This prints out the first 50 search results of the query `node.js best practices`.

```javascript
var google = require('google');

var nextCounter = 0;

google('node.js best practices', function(err, next, links){
  if (err) {
  	console.error(err);
  } else {
  	for (var i = 0; i < links.length; ++i) {
  	  console.log(links[i].title + ' - ' + links[i].link);
  	  console.log(links[i].description + "\n");
  	}

  	if (nextCounter < 4){
      nextCounter += 1;
      next();
  	}

  }
});
```<commit_msg>Updated readme.<commit_after>Node.js - google
=====================

This module allows you to search google by scraping the results. It does NOT use the Google Search API. PLEASE DO NOT ABUSE THIS. The intent of using this is convenience vs the cruft that exists in the Google Search API.



Installation
------------

    npm install google



Example
-------

This prints out the first 50 search results of the query `node.js best practices`.

```javascript
var google = require('google');

var nextCounter = 0;

google('node.js best practices', function(err, next, links){
  if (err) {
  	console.error(err);
  } else {
  	for (var i = 0; i < links.length; ++i) {
  	  console.log(links[i].title + ' - ' + links[i].link);
  	  console.log(links[i].description + "\n");
  	}

  	if (nextCounter < 4){
      nextCounter += 1;
      if (next) {
        next();
      }
  	}

  }
});
```
{'fraction_non_alphanumeric': 0.16112385321100917, 'fraction_numerical': 0.006880733944954129, 'mean_word_length': 2.8183807439824946, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5463183', 'n_tokens_mistral': 567, 'n_tokens_neox': 528, 'n_words': 195}