"We are back" « oc.at

Bug: "Post a link" und Reddit

Elbart 10.03.2025 - 12:19 364 2
Posts

Elbart

Here to stay
Registered: Dec 2002
Location: Hobbingen
Posts: 854
Will ich eine Reddit-URL per "Post a Link" einfügen, kommt diese Fehlermeldung:
Zitat
Error: Error while fetching URL (https://old.reddit.com/r/nvidia/com...rd_comparison/: The requested URL returned error: 403 Blocked, 0 redirects)
Passiert auch mit https://www.reddit.com

Ist das neu, oder normal so, seit dem API-Pricing o.ä.?
Bearbeitet von Elbart am 10.03.2025, 12:35

Longbow

Here to stay
Avatar
Registered: Feb 2003
Location: Homeoffice
Posts: 5494
Bestimmte pages gehen einfach nicht zB reddit - aber auch andere wie div. shops.

Daeda

Here to stay
Registered: Aug 2007
Location: Graz
Posts: 1586
@colo & co

grad bissl rumprobiert. falls ihrs mit curl machts, damit sollten zumindest mehr seiten gehn:

Code:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36');

- reddit: old und new geht damit (obs dann sinnvoll gescraped werden kann, kA)
- spotify (wurde gerade im "was hört ihr" thread gefragt): geht leider nicht wirklich. die seite wird mit einer buggy error message geladen.
- spotify alternative: tidal share link geht mit den settings https://tidal.com/browse/track/305372?u und dort kann man dann zum jeweiligen streaming anbieter wechseln. bzw würden die auch ein iframe embed erlauben, sieht dann so aus:

Code:
<iframe src="https://embed.tidal.com/tracks/305372" width="500" height="120" allow="encrypted-media" sandbox="allow-same-origin allow-scripts allow-forms allow-popups" title="TIDAL Embed Player" />

hth
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz