<commit_before>import logging

import requests
from bs4 import BeautifulSoup
from requests import ConnectionError

from http_request_randomizer.requests.parsers.UrlParser import UrlParser

logger = logging.getLogger(__name__)
__author__ = 'pgaref'


# Samair Proxy now renamed to: premproxy.com
class SamairProxyParser(UrlParser):
    def __init__(self, web_url, timeout=None):
        web_url += "/list/"
        UrlParser.__init__(self, web_url, timeout)

    def parse_proxyList(self):
        curr_proxy_list = []
        # Parse all proxy pages -> format: /list/{num}.htm
        # TODO: get the pageRange from the 'pagination' table
        for page in range(1, 21):
            response = requests.get("{0}{num:02d}.htm".format(self.get_URl(), num=page), timeout=self.timeout)<commit_msg>Cleaning unused import<commit_after>import logging

import requests
from bs4 import BeautifulSoup

from http_request_randomizer.requests.parsers.UrlParser import UrlParser

logger = logging.getLogger(__name__)
__author__ = 'pgaref'


# Samair Proxy now renamed to: premproxy.com
class SamairProxyParser(UrlParser):
    def __init__(self, web_url, timeout=None):
        web_url += "/list/"
        UrlParser.__init__(self, web_url, timeout)

    def parse_proxyList(self):
        curr_proxy_list = []
        # Parse all proxy pages -> format: /list/{num}.htm
        # TODO: get the pageRange from the 'pagination' table
        for page in range(1, 21):
            response = requests.get("{0}{num:02d}.htm".format(self.get_URl(), num=page), timeout=self.timeout)
{'fraction_non_alphanumeric': 0.10499359795134443, 'fraction_numerical': 0.008962868117797696, 'mean_word_length': 3.809230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1086405', 'n_tokens_mistral': 484, 'n_tokens_neox': 464, 'n_words': 123}