from PageLinkExtractor import PageLinkExtractor
import requests
from bs4 import BeautifulSoup
from UrlProvider import UrlProvider

request = requests.get("https://www.cyberport.de/notebook-und-tablet/notebooks.html")
page = BeautifulSoup(request.text, "html.parser")


def get_total_page_count():
    numbers = []
    for item in page.select(".paging"):
        numbers.append(item.text)

    a = numbers[0].split('\n')
    return a[20]


url_provider = UrlProvider(get_total_page_count())
urls = url_provider.url_all_pages("descending", 1, 5)
print(urls)

page_link_extractor = PageLinkExtractor()
links = page_link_extractor.extract_links("https://www.cyberport.de/notebook-und-tablet/notebooks.html?productsPerPage=24&sort=price_desc&page=2")
print(links)
c12e5cfd29d24fda611c4533fca0fc3917695b91
<mask token>


def get_total_page_count():
    numbers = []
    for item in page.select('.paging'):
        numbers.append(item.text)
    a = numbers[0].split('\n')
    return a[20]


<mask token>

<mask token>


def get_total_page_count():
    numbers = []
    for item in page.select('.paging'):
        numbers.append(item.text)
    a = numbers[0].split('\n')
    return a[20]


<mask token>
print(urls)
<mask token>
print(links)

<mask token>
request = requests.get(
    'https://www.cyberport.de/notebook-und-tablet/notebooks.html')
page = BeautifulSoup(request.text, 'html.parser')


def get_total_page_count():
    numbers = []
    for item in page.select('.paging'):
        numbers.append(item.text)
    a = numbers[0].split('\n')
    return a[20]


url_provider = UrlProvider(get_total_page_count())
urls = url_provider.url_all_pages('descending', 1, 5)
print(urls)
page_link_extractor = PageLinkExtractor()
links = page_link_extractor.extract_links(
    'https://www.cyberport.de/notebook-und-tablet/notebooks.html?productsPerPage=24&sort=price_desc&page=2'
    )
print(links)

from PageLinkExtractor import PageLinkExtractor
import requests
from bs4 import BeautifulSoup
from UrlProvider import UrlProvider
request = requests.get(
    'https://www.cyberport.de/notebook-und-tablet/notebooks.html')
page = BeautifulSoup(request.text, 'html.parser')


def get_total_page_count():
    numbers = []
    for item in page.select('.paging'):
        numbers.append(item.text)
    a = numbers[0].split('\n')
    return a[20]


url_provider = UrlProvider(get_total_page_count())
urls = url_provider.url_all_pages('descending', 1, 5)
print(urls)
page_link_extractor = PageLinkExtractor()
links = page_link_extractor.extract_links(
    'https://www.cyberport.de/notebook-und-tablet/notebooks.html?productsPerPage=24&sort=price_desc&page=2'
    )
print(links)

from PageLinkExtractor import PageLinkExtractor
import requests
from bs4 import BeautifulSoup
from UrlProvider import UrlProvider

request = requests.get("https://www.cyberport.de/notebook-und-tablet/notebooks.html")
page = BeautifulSoup(request.text, "html.parser")


def get_total_page_count():
    numbers = []
    for item in page.select(".paging"):
        numbers.append(item.text)

    a = numbers[0].split('\n')
    return a[20]


url_provider = UrlProvider(get_total_page_count())
urls = url_provider.url_all_pages("descending", 1, 5)
print(urls)

page_link_extractor = PageLinkExtractor()
links = page_link_extractor.extract_links("https://www.cyberport.de/notebook-und-tablet/notebooks.html?productsPerPage=24&sort=price_desc&page=2")
print(links)