This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import json | |
import re | |
import unicodedata | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
POCKEE_SHOP_MAP = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
BASE_URL = 'https://eshop.mymarket.gr{cat}?sort_by=popularity&items_per_page=120&page={page}' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
def format_price(p): | |
try: | |
return float(p.strip()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from random import randint | |
from scrapy import Request | |
from w3lib import html | |
from src.scraper.helpers import format_price | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
BASE_URL = 'https://www.sklavenitis.gr{cat}?$component=Atcom.Sites.Yoda.Components.ProductList.Index&sortby=ByPopularity&pg={page}&endless=true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import json | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
FORM_URL = 'https://eshop.masoutis.gr/WcfScanNShopForWeb/OrdersService.svc/GetPromoItemWithListCouponsSubCategories/' | |
HEADERS = {'Content-Type': 'application/json; charset=utf-8', 'Host': 'eshop.masoutis.gr', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from random import randint | |
from scrapy import Request | |
from w3lib import html | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
def format_price(p): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import json | |
import re | |
import urllib.parse | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
URLS = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import json | |
import re | |
from scrapy import Request | |
from src.scraper.helpers import format_price | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
BASE_URL = 'https://www.bazaar-online.gr/CachedServices/api/Product/GetScrolledProductList?lang=el&templateCode=productList&configCode=&itemId={item_id}&itemPath={item_path}&pageNumber={page}&pageSize=96&sortKey=BestSelling-Descending' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import json | |
from scrapy import Request | |
from src.scraper.shops.spiders.base import SupermarketSpider | |
BASE_URL = 'https://www.ab.gr/search/{cat}/loadMore?pageSize=20&pageNumber={page}&sort=relevance' | |
CDN_URL = 'https://d3hz4baxchepgp.cloudfront.net' |