{'fraction_non_alphanumeric': 0.016241299303944315, 'fraction_numerical': 0.0038669760247486465, 'mean_word_length': 4.802690582959642, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, '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}}
Prevent XPath and CSS Based Scrapers by Using Markup Randomizer

Web Scraping may consider as data theft action, several researchers have introduced some approaches for addressing this issue. These solutions could solve the problem in partial ways and sometimes, solution cannot be applicable with modern web techniques. Consequently, in our work we have introduced a new approach for stopping web scraping in an efficient way and applicable with modern web techniques called Markup Randomizer, which changes the HTML and CSS in proper way randomly in timely manner. The best feature of our model is that each web page can use it without paying any efforts or restrictions in web site markup. Experiments done over collected dataset which consist of 30 websites divided into three categories: News, Currency Rates and Weather. The proposed model based on Markup Randomizer applied over this dataset. The aim of the experimental is to measure the Similarity, File Size and the time. During testing the proposed model, we get that a change on the markup done up to 50%, file size is changed and optimized after during the process. The required time to applying the model and generating the new markup is good and up to 2 minutes. Finally, we find that our proposed markup randomizer is accepted.