Archived
1
0
Fork 0
Commit graph

16 commits

Author SHA1 Message Date
2afd36584b
Add store support for Micro Center (#2)
Local stores are set with an "storeid" param in the query string of the URL
and by a "storeSelected" cookie to avoid garbage in the query strings for
further requests. As product URL is a unique key in the database, Micro Center
is able to handle an URL with the store ID for every product. We can add this
storeid in the list of URLs to parse and job done. Every single Micro Center
local store are parsable.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-28 15:11:31 +01:00
42f79c03d4
Add Micro Center support (#2)
As a good start, only the "shippable items" are parsed. Next enhancement would
be to configure local shops.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-28 10:33:28 +01:00
5e19efbad8
Replace strings with regexp for Twitter hashtags
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-28 09:45:19 +01:00
4342f65211
Use array of key/value for Twitter hashtags (#1)
With Go, maps are not ordered the way they are declared. Keys can be read at any
order. When a pattern is too large ("rtx 3060"), when placed first, it can match
a name of another product ("rtx 3060 ti"). When placed second, the good hashtag
is chosen. This commit uses an array of maps because arrays are ordered.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-27 18:34:13 +01:00
40b0ba999a
Remove useless compileRegex function
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-27 15:14:21 +01:00
3a4aba93e5
Release 0.2.0
- new language: go
- new shops: cybertek.fr, mediamarkt.ch
- deprecated shops: alternate.be, minershop.eu
- improved database transaction management
- better web parsing library (ferret, requires headless chrome browser)
- include or exclude products by applying regex on their names
- check for PID file to avoid running the bot twice
- hastags are now configurable

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-27 08:10:43 +01:00
31bcbc51dd
Commit more often
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-18 17:32:49 +01:00
e424b3bf98
Bugfix tweet error log
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-02-11 14:59:49 +01:00
91c5d07ef2
Add AMD RX 5700 XT hashtags 2021-01-19 17:30:06 +01:00
2c7189d7fc
Add mineshop support 2021-01-13 16:48:03 +01:00
29c26167dc
Remove new line in the README 2021-01-13 08:16:51 +01:00
b8abbe67f4
Lowercase arguments descriptions 2020-12-30 15:29:55 +01:00
7e351a79f6
Improve crawlers mapping 2020-12-30 15:25:36 +01:00
39eaf21c0a
Crawl websites concurrently 2020-12-30 15:15:34 +01:00
0b0d2727e8
Initial release 2020-12-27 18:27:07 +01:00
89c7ec935b
Initial commit 2020-12-27 18:23:36 +01:00