rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

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

Open keybreak opened this issue 2 years ago • 8 comments

Bridge request

General information

  • https://store.epicgames.com/en-US/free-games

  • Which information would you like to see?

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

  • Which of the following parameters do you expect?

    • [X] Title
    • [X] URI (link to the original article)
    • [ ] Author
    • [x] Timestamp
    • [X] Content (the content of the article)
    • [x] Enclosures (pictures, videos, etc...)
    • [ ] Categories (categories, tags, etc...)

Options

  • [ ] Limit number of returned items
    • Default limit: 5
  • [ ] Load full articles
    • Cache articles (articles are stored in a local cache on first request): yes
    • Cache timeout (max = 24 hours): 24 hours
  • [X] Balance requests (RSS-Bridge uses cached versions to reduce bandwith usage)
    • Timeout (default = 5 minutes, max = 24 hours): 5 minutes

keybreak avatar Jul 08 '23 09:07 keybreak

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;
        }
    }
}

dvikan avatar Jul 08 '23 09:07 dvikan

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?

keybreak avatar Jul 08 '23 11:07 keybreak

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

dvikan avatar Jul 08 '23 14:07 dvikan

Cloudflare protection is such a cancer :man_facepalming:

keybreak avatar Jul 08 '23 19:07 keybreak

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

tillcash avatar Jul 12 '23 05:07 tillcash

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

keybreak avatar Jul 12 '23 06:07 keybreak

Shoutout for these feeds

https://github.com/eikowagenknecht/lootscraper

deathbybandaid avatar Jul 23 '23 03:07 deathbybandaid

@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.

t0stiman avatar Aug 24 '23 14:08 t0stiman