Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HardwareInfoBridge] Created a bridge for hardware.info #2232

Merged
merged 3 commits into from
Aug 10, 2021

Conversation

t0stiman
Copy link
Contributor

@t0stiman t0stiman commented Aug 3, 2021

Added a bridge that fetches the newest articles from https://hardware.info, a Dutch site about computer hardware and consumer electronics.
The bridge expands from the official RSS feed, which doesn't offer full articles.

@t0stiman
Copy link
Contributor Author

t0stiman commented Aug 3, 2021

Hmm, I just noticed that the bridge works on my local pc but not on my VPS.

Error message: `Unexpected response from upstream.
cUrl error: Could not resolve host: $feedItem->link (6)
PHP error: `
Query string: `action=display&bridge=HardwareInfo&format=Html`
Version: `git.master.0b24292`

IP ban i guess?

$item = parent::parseItem($feedItem);

//get full article
$articlePage = getSimpleHTMLDOMCached('$feedItem->link');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'$feedItem->link' should be without quotes at all.
That is why bridge errors "Could not resolve host: $feedItem->link"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops... fixed

Comment on lines 5 to 6
const URI = 'https://HardwareInfo.net/';
const DESCRIPTION = 'Tech news from hardware.info (Dutch)';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardware.info or hardware.net? First does not resolve for real, second has problems with certificate.

Copy link
Contributor Author

@t0stiman t0stiman Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://hardware.info/ , which redirects to https://nl.hardware.info/
i put the wrong value in URI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@em92 em92 merged commit f3f934e into RSS-Bridge:master Aug 10, 2021
@em92
Copy link
Contributor

em92 commented Aug 10, 2021

gj!

@t0stiman t0stiman deleted the hardwareinfobridge2 branch March 8, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants