2018-07-13 02:35:13 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class HotUKDealsBridge extends PepperBridgeAbstract
|
|
|
|
{
|
|
|
|
const NAME = 'HotUKDeals bridge';
|
|
|
|
const URI = 'https://www.hotukdeals.com/';
|
|
|
|
const DESCRIPTION = 'Return the HotUKDeals search result using keywords';
|
|
|
|
const MAINTAINER = 'sysadminstory';
|
|
|
|
const PARAMETERS = [
|
|
|
|
'Search by keyword(s))' => [
|
2022-07-01 16:10:30 +03:00
|
|
|
'q' => [
|
2018-07-13 02:35:13 +03:00
|
|
|
'name' => 'Keyword(s)',
|
|
|
|
'type' => 'text',
|
2022-03-24 13:59:34 +03:00
|
|
|
'exampleValue' => 'lamp',
|
2018-07-13 02:35:13 +03:00
|
|
|
'required' => true
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
'hide_expired' => [
|
|
|
|
'name' => 'Hide expired deals',
|
|
|
|
'type' => 'checkbox',
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
'hide_local' => [
|
|
|
|
'name' => 'Hide local deals',
|
|
|
|
'type' => 'checkbox',
|
|
|
|
'title' => 'Hide deals in physical store',
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
'priceFrom' => [
|
|
|
|
'name' => 'Minimal Price',
|
|
|
|
'type' => 'text',
|
|
|
|
'title' => 'Minmal Price in Pounds',
|
2019-01-05 14:29:26 +03:00
|
|
|
'required' => false
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
'priceTo' => [
|
|
|
|
'name' => 'Maximum Price',
|
|
|
|
'type' => 'text',
|
|
|
|
'title' => 'Maximum Price in Pounds',
|
2019-01-05 14:29:26 +03:00
|
|
|
'required' => false
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
|
|
|
|
'Deals per group' => [
|
|
|
|
'group' => [
|
|
|
|
'name' => 'Group',
|
[PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management (#4336)
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Since groups can change URLs, be created, or removed at the discretion
of website administrators, maintaining a valid and functional list of
groups is impractical.
Users can now enter the part of the URL that defines the group in a text
field, rather than searching through a lengthy, likely outdated list.
The way the RSS feed title is retrieved had to be adjusted accordingly.
Titles are now cached for 15 days to avoid unnecessary website access
and to prevent potential bot blocking.
Existing feeds will continue to work, as their parameters remain
unchanged; only the method for inputting them has been modified.
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Coding policy fixes
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Fix wrong comment
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Add Example values for Group context
2024-11-23 21:11:36 +03:00
|
|
|
'type' => 'text',
|
|
|
|
'exampleValue' => 'broadband',
|
|
|
|
'title' => 'Group name in the URL : The group name that must be entered is present after "https://www.hotukdeals.com/tag/" and before any "?".
|
|
|
|
Example: If the URL of the group displayed in the browser is :
|
|
|
|
https://www.hotukdeals.com/tag/broadband?sortBy=temp
|
|
|
|
Then enter :
|
|
|
|
broadband',
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2018-07-13 02:35:13 +03:00
|
|
|
'order' => [
|
|
|
|
'name' => 'Order by',
|
|
|
|
'type' => 'list',
|
|
|
|
'title' => 'Sort order of deals',
|
|
|
|
'values' => [
|
|
|
|
'From the most to the least hot deal' => '-hot',
|
2022-01-10 13:46:26 +03:00
|
|
|
'From the most recent deal to the oldest' => '-new',
|
2022-07-01 16:10:30 +03:00
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
2022-01-10 13:46:26 +03:00
|
|
|
'Discussion Monitoring' => [
|
2022-07-01 16:10:30 +03:00
|
|
|
'url' => [
|
2022-01-10 13:46:26 +03:00
|
|
|
'name' => 'Discussion URL',
|
2018-07-13 02:35:13 +03:00
|
|
|
'type' => 'text',
|
2022-01-10 13:46:26 +03:00
|
|
|
'required' => true,
|
2018-07-13 02:35:13 +03:00
|
|
|
'title' => 'Discussion URL to monitor. Ex: https://www.hotukdeals.com/discussions/title-123',
|
2022-01-10 13:46:26 +03:00
|
|
|
'exampleValue' => 'https://www.hotukdeals.com/discussions/the-hukd-lego-thread-3599357',
|
2022-07-01 16:10:30 +03:00
|
|
|
],
|
2022-01-10 13:46:26 +03:00
|
|
|
'only_with_url' => [
|
2018-07-13 02:35:13 +03:00
|
|
|
'name' => 'Exclude comments without URL',
|
2022-01-10 13:46:26 +03:00
|
|
|
'type' => 'checkbox',
|
2018-07-13 02:35:13 +03:00
|
|
|
'title' => 'Exclude comments that does not contains URL in the feed',
|
2019-01-05 14:29:26 +03:00
|
|
|
'defaultValue' => false,
|
2022-07-01 16:10:30 +03:00
|
|
|
]
|
|
|
|
]
|
2018-07-13 02:35:13 +03:00
|
|
|
|
2022-01-10 13:46:26 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
];
|
2022-01-10 13:46:26 +03:00
|
|
|
|
2018-07-13 02:35:13 +03:00
|
|
|
public $lang = [
|
|
|
|
'bridge-uri' => self::URI,
|
|
|
|
'bridge-name' => self::NAME,
|
|
|
|
'context-keyword' => 'Search by keyword(s))',
|
|
|
|
'context-group' => 'Deals per group',
|
2022-01-10 13:46:26 +03:00
|
|
|
'context-talk' => 'Discussion Monitoring',
|
2021-11-06 21:43:44 +03:00
|
|
|
'uri-group' => 'tag/',
|
2023-10-01 21:46:51 +03:00
|
|
|
'uri-deal' => 'deals/',
|
2024-01-05 09:23:40 +03:00
|
|
|
'uri-merchant' => 'search/deals?merchant-id=',
|
2018-07-13 02:35:13 +03:00
|
|
|
'request-error' => 'Could not request HotUKDeals',
|
2022-01-10 13:46:26 +03:00
|
|
|
'thread-error' => 'Unable to determine the thread ID. Check the URL you entered',
|
2024-02-06 04:23:12 +03:00
|
|
|
'currency' => '£',
|
2018-07-13 02:35:13 +03:00
|
|
|
'price' => 'Price',
|
|
|
|
'shipping' => 'Shipping',
|
|
|
|
'origin' => 'Origin',
|
|
|
|
'discount' => 'Discount',
|
|
|
|
'title-keyword' => 'Search',
|
|
|
|
'title-group' => 'Group',
|
2022-01-10 13:46:26 +03:00
|
|
|
'title-talk' => 'Discussion Monitoring',
|
2024-03-28 21:44:27 +03:00
|
|
|
'deal-type' => 'Deal Type',
|
|
|
|
'localdeal' => 'Local deal',
|
[PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management (#4336)
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Since groups can change URLs, be created, or removed at the discretion
of website administrators, maintaining a valid and functional list of
groups is impractical.
Users can now enter the part of the URL that defines the group in a text
field, rather than searching through a lengthy, likely outdated list.
The way the RSS feed title is retrieved had to be adjusted accordingly.
Titles are now cached for 15 days to avoid unnecessary website access
and to prevent potential bot blocking.
Existing feeds will continue to work, as their parameters remain
unchanged; only the method for inputting them has been modified.
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Coding policy fixes
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Fix wrong comment
* [PepperBridgeAbstract, DealabsBridge, HotUKDealsBridge, MydealsBridge] Streamlining Group Management
Add Example values for Group context
2024-11-23 21:11:36 +03:00
|
|
|
'context-hot' => '-hot',
|
|
|
|
'context-new' => '-new',
|
2018-07-13 02:35:13 +03:00
|
|
|
];
|
|
|
|
}
|