<commit_before>arpg
====

Amazon Related Product Graph

This script allows you to enter a (set of) ASIN(s) and crawl its recommendations up til a user-specified depth. The output is a GEXF file with the recommendation network for those ASINs.

Usage
====

Change the settings in config.php and run the script as follows: php amazon_related_product_graph.php

Dependencies
====

The git clone has git subtrees for https://github.com/Exeu/apai-io/ and https://github.com/digitalmethodsinitiative/GEXF-library so you should be good to go.<commit_msg>specified that its a PHP script<commit_after>arpg
====

Amazon Related Product Graph

This PHP script allows you to enter a (set of) ASIN(s) and crawl its recommendations up til a user-specified depth. The output is a GEXF file with the recommendation network for those ASINs.

Usage
====

Change the settings in config.php and run the script as follows: 

php amazon_related_product_graph.php

Dependencies
====

The git clone has git subtrees for https://github.com/Exeu/apai-io/ and https://github.com/digitalmethodsinitiative/GEXF-library so you should be good to go.
{'fraction_non_alphanumeric': 0.07334525939177101, 'fraction_numerical': 0.0, 'mean_word_length': 4.567164179104478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2903292', 'n_tokens_mistral': 327, 'n_tokens_neox': 311, 'n_words': 143}