-
Notifications
You must be signed in to change notification settings - Fork 2
/
__init__.py
291 lines (233 loc) · 7.77 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# -*- coding: utf-8 -*-
__version__ = "0.5.4"
__author__ = "mehtaarn000"
__license__ = "MIT"
__maintainer__ = "mehtaarn000"
__credits__ = ["mehtaarn000", "kilianalias", "nethracookie"]
"""A python module that will allow users to get product prices information from a multitude of different websites."""
from . import (
_amazon,
_bestbuy,
_dell,
_michaels,
_acer,
_walmart,
_adafruit,
_xbox,
_joanns,
_github_shop,
_macys,
_chess_shop,
_newegg,
_etsy,
_overstock,
_pishop,
_boohoo,
_walgreens,
_forever21,
_whbm,
_gucci,
_louis_vuitton,
_minecraft_shop,
_ann_taylor,
_tjmaxx,
_journeys,
_adidas,
_lids
)
def amazon(amazon_url : str) -> dict:
"""Scrape product information from amazon.com
Keyword arguments:
amazon_url -- a product url from amazon.com
"""
amazon_product = _amazon._amazon(amazon_url)
return amazon_product
def bestbuy(bestbuy_url : str) -> dict:
"""Scrape product information from bestbuy.com
Keyword arguments:
bestbuy_url -- a product url from bestbuy.com
"""
bestbuy_product = _bestbuy._bestbuy(bestbuy_url)
return bestbuy_product
def dell(dell_url : str) -> dict:
"""Scrape product information from dell.com
Keyword arguments:
dell_url -- a product url from dell.com
"""
dell_product = _dell._dell(dell_url)
return dell_product
def michaels(michaels_url : str) -> dict:
"""Scrape product information from michaels.com
Keyword arguments:
michaels_url -- a product url from michaels.com
"""
michaels_product = _michaels._michaels(michaels_url)
return michaels_product
def acer(acer_url : str) -> dict:
"""Scrape product information from store.acer.com
Keyword arguments:
acer_url -- a product url from store.acer.com
"""
acer_product = _acer._acer(acer_url)
return acer_product
def walmart(walmart_url : str) -> dict:
"""Scrape product information from walmart.com
Keyword arguments:
walmart_url -- a product url from walmart.com
"""
walmart_product = _walmart._walmart(walmart_url)
return walmart_product
def adafruit(adafruit_url : str) -> dict:
"""Scrape product information from adafruit.com
Keyword arguments:
adafruit_url -- a product url from adafruit.com
"""
adafruit_product = _adafruit._adafruit(adafruit_url)
return adafruit_product
def xbox(xbox_url : str) -> dict:
"""Scrape product information from xbox.com
Keyword arguments:
xbox_url -- a product url from xbox.com
"""
xbox_product = _xbox._xbox(xbox_url)
return xbox_product
def joanns(joanns_url : str) -> dict:
"""Scrape product information from joanns.com
Keyword arguments:
joanns_url -- a product url from joanns.com
"""
joanns_product = _joanns._joanns(joanns_url)
return joanns_product
def github_shop(github_shop_url : str) -> dict:
"""Scrape product information from github.myshopify.com
Keyword arguments:
github_shop_url -- a product url from github.myshopify.com
"""
github_shop_product = _github_shop._github_shop(github_shop_url)
return github_shop_product
def macys(macys_url : str) -> dict:
"""Scrape product information from macys.com
Keyword arguments:
macys_url -- a product url from macys.com
"""
macys_product = _macys._macys(macys_url)
return macys_product
def chess_shop(chess_shop_url : str) -> dict:
"""Scrape product information from shop.chess.com
Keyword arguments:
chess_shop_url -- a product url from shop.chess.com
"""
chess_shop_product = _chess_shop._chess_shop(chess_shop_url)
return chess_shop_product
def newegg(newegg_url : str) -> dict:
"""Scrape product information from newegg.com
Keyword arguments:
newegg_url -- a product url from newegg.com
"""
newegg_product = _newegg._newegg(newegg_url)
return newegg_product
def etsy(etsy_url : str) -> dict:
"""Scrape product information from etsy.com
Keyword arguments:
etsy_url -- a product url from etsy.com
"""
etsy_product = _etsy._etsy(etsy_url)
return etsy_product
def overstock(overstock_url : str) -> dict:
"""Scrape product information from overstock.com
Keyword arguments:
overstock_url -- a product url from overstock.com
"""
overstock_product = _overstock._overstock(overstock_url)
return overstock_product
def pishop(pishop_url : str) -> dict:
"""Scrape product information from pishop.us
Keyword arguments:
pishop_url -- a product url from pishop.us
"""
pishop_product = _pishop._pishop(pishop_url)
return pishop_product
def boohoo(boohoo_url : str) -> dict:
"""Scrape product information from us.boohoo.com
Keyword arguments:
boohoo_url -- a product url from us.boohoo.com
"""
boohoo_product = _boohoo._boohoo(boohoo_url)
return boohoo_product
def walgreens(walgreens_url : str) -> dict:
"""Scrape product information from walgreens
Keyword arguments:
walgreens_url -- a product url from walgreens.com
"""
walgreens_product = _walgreens._walgreens(walgreens_url)
return walgreens_product
def forever21(forever21_url : str) -> dict:
"""Scrape product information from forever21
Keyword arguments:
forever21_url -- a product url from forever21.com
"""
forever21_product = _forever21._forever21(forever21_url)
return forever21_product
def whbm(whbm_url : str) -> dict:
"""Scrape product information from White House Black Market
Keyword arguments:
whbm_url -- a product url from whitehouseblackmarket.com
"""
whbm_product = _whbm._whbm(whbm_url)
return whbm_product
def gucci(gucci_url : str) -> dict:
"""Scrape product information from Gucci
Keyword arguments:
gucci_url -- a product url from gucci.com
"""
gucci_product = _gucci._gucci(gucci_url)
return gucci_product
def louis_vuitton(louis_vuitton_url : str) -> dict:
"""Scrape product information from Louis Vuitton
Keyword arguments:
louis_vuitton_url -- a product url from us.louisvuitton.com
"""
louis_vuitton_product = _louis_vuitton._louis_vuitton(louis_vuitton_url)
return louis_vuitton_product
def minecraft(minecraft_url : str) -> dict:
"""Scrape product information from Minecraft Shop
Keyword arguments:
minecraft_url -- a product url from shop.minecraft.net
"""
minecraft_product = _minecraft_shop._minecraft_shop(minecraft_url)
return minecraft_product
def ann_taylor(ann_taylor_url : str) -> dict:
"""Scrape product information from Ann Taylor
Keyword arguments:
ann_taylor_url -- a product url from anntaylor.com
"""
ann_taylor_product = _ann_taylor._ann_taylor(ann_taylor_url)
return ann_taylor_product
def tjmaxx(tjmaxx_url : str) -> dict:
"""Scrape product information from Tjmaxx
Keyword arguments:
tjmaxx_url -- a product url from tjmaxx.tjx.com
"""
tjmaxx_product = _tjmaxx._tjmaxx(tjmaxx_url)
return tjmaxx_product
def journeys(journeys_url : str) -> dict:
"""Scrape product information from Journeys
Keyword arguments:
journeys_url -- a product url from journeys.com
"""
journeys_product = _journeys._journeys(journeys_url)
return journeys_product
def adidas(adidas_url : str) -> dict:
"""Scrape product information from Adidas
Keyword arguments:
adidas_url -- a product url from adidas.com
"""
adidas_product = _adidas._adidas(adidas_url)
return adidas_product
def lids(lids_url : str) -> dict:
"""Scrape product information from Lids
Keyword arguments:
lids_url -- a product url from lids.com
"""
lids_product = _lids._lids(lids_url)
return lids_product