27 Commits

Author SHA1 Message Date
Joan
3a0c9ac5dd Fixed error with thread_id when responding to a message in a group that has no topics 2024-10-08 09:42:57 +02:00
Alejandro Perez Lopez
7751924f21 Add support for groups with threads by including the thread_id into the bot requests 2024-04-19 12:44:34 +02:00
Joan
23e5cfd878 Updated to ptb 21.0.1 and added socks5 proxy support 2024-03-24 19:08:37 +01:00
Alejandro Perez Lopez
b7322c863d Return a controlled value when the link is invalid (not an amazon link) so we avoid throwing an exception 2024-03-20 21:34:16 +01:00
Joan
9a8a7a291b Improved original message obfuscation 2023-12-29 11:08:43 +01:00
Joan
fa12c7e9e5 Added original message with original link obfuscation 2023-12-29 11:06:04 +01:00
Alejandro Perez Lopez
516a2a9f3a Missing replace assigment (the change was not included into the commit by mistake) 2023-09-30 18:19:56 +02:00
Alejandro Perez Lopez
87e893dcc8 Support both 'm' and 'smid' parameters if present 2023-09-27 15:27:41 +02:00
Joan
6dcd7af4e1 Moved logging to only show if link is found 2023-09-22 13:04:40 +02:00
Joan
3c713b4a5d Updated logo 2023-09-22 12:49:05 +02:00
Alejandro Perez Lopez
38fdf3bb50 Move logic in case the captcha resolution fails or we can't extract the data after the captcha resolution to avoid errors 2023-09-22 12:37:05 +02:00
Alejandro Perez Lopez
aec433fa9c Remove duplicated code by extracting repeated code into methods and add feedback for invalid urls 2023-09-09 19:23:56 +02:00
Alejandro Perez Lopez
bf1b9309e1 Create a class for storing the scraped product information 2023-09-09 19:22:40 +02:00
Alejandro Perez Lopez
fe1ac2cedd Extract into a separated method the logic for building the referer url 2023-09-05 12:04:14 +02:00
Joan
b717e9fdc4 Fixed exception handling 2023-09-05 10:24:19 +02:00
Joan
a60aa4c580 Added last_screenshot for debugging purposes 2023-09-05 10:24:10 +02:00
Joan
8071324adf Changed SQL INSERT so no injection is possible 2023-09-02 22:00:59 +02:00
Joan
d3651352ee Use same version of chrome driver and browser 2023-09-02 22:00:37 +02:00
Joan
e124ca4f2f Syncing old changes... 2023-08-28 20:51:29 +02:00
Joan
d99399f6ac Added xpath method for obtaining image when normal fails 2023-07-11 12:56:02 +02:00
Joan
243d0ba749 Added image placeholder if cant retrieve it 2023-06-28 13:26:31 +02:00
Joan
a40f55ca4e Changed link to button 2023-03-14 10:16:58 +01:00
Joan
9979672b46 Added captcha solving method 2023-03-06 22:34:43 +01:00
Joan Cano
e6ef4365dd Fixed DB path 2023-03-06 17:16:58 +01:00
Joan Cano
8e5ab0ef81 Fixed Dockerfile 2023-03-06 17:13:20 +01:00
Joan Cano
76cbb0c6cb Fixed Dockerfile 2023-03-06 17:12:41 +01:00
Joan Cano
a4a76966fe Initial commit, refactored some things from original code and removed WP functionality 2023-03-06 17:04:59 +01:00