RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.19k stars 1.02k forks source link

Bridge request for https://store.epicgames.com/en-US/free-games #3512

Open keybreak opened 1 year ago

keybreak commented 1 year ago

Bridge request

General information

I know there's already epicgames bridge for news, but it would be really cool to have addition specifically for their free games feed in order not to miss interesting offers!

Meaning those ones:

image

Options

dvikan commented 1 year ago

has cloudflare protection unfortunately

class EpicGamesFreeGamesBridge extends BridgeAbstract
{
    const NAME = 'EpicGamesFreeGames';

    public function collectData()
    {
        $data = getContents('https://store.epicgames.com/en-US/free-games');
        if (preg_match('#^window.__REACT_QUERY_INITIAL_QUERIES__ = (.*)$#', $data, $m)) {
            $a=2;
        }
    }
}
keybreak commented 1 year ago

Oh...Now that's a shame. I wonder, how's news bridge work then?

P.S. Or you mean it's not blocker but complication rather?

dvikan commented 1 year ago

it's a diffferent domain

im getting 403 Forbidden:

https://store.epicgames.com/en-US/free-games resulted in 403 Forbidden <html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>@media screen and (max-width:374px){h1{font-size:18px}.cf_challenge_container{margin:25px;padding:25px}.cf_challenge_text{font-size:16px}}@media screen and (min-width:375px) and (max-width:1279px){h1{font-size:30px}.cf_challenge_container{margin:25px;padding:60px}.cf_challenge_text{font-size:16px}}@media screen and (min-width:1280px){h1{font-size:40px}.cf_challenge_container{margin:25px;padding:60px
keybreak commented 1 year ago

Cloudflare protection is such a cancer :man_facepalming:

tillcash commented 1 year ago

Hey @keybreak, I wanted to let you know that you can make use of this feed: https://steamcommunity.com/groups/freegamesfinders/rss/.

keybreak commented 1 year ago

@tillcash That's very cool, thank you! :heart:

deathbybandaid commented 1 year ago

Shoutout for these feeds

https://github.com/eikowagenknecht/lootscraper

t0stiman commented 1 year ago

@keybreak I have a bridge that does this... I never made a pull request because it's kind of a hack. Instead of fetching from EGS directly it uses the subreddit FreeGameFindings. The feed returns an error every once in a while but apart from that it works.