GithubHelp home page GithubHelp logo

refk32 / freeg Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9 KB

Simple scraper for limited free games

License: MIT License

Python 100.00%
scrape scraper freegames python scraping scraping-websites games

freeg's Introduction

freeg

freeg is simple script to scrape limited free games.

Currently only able to scrape website https://isthereanydeal.com/specials/.

Installation

$ pip install freeg

Usage

From console

Basic
$ freeg
1. Watch Dogs 2 - epicgames.com
2. Stick It To The Man - epicgames.com
3. Football Manager 2020 - epicgames.com

Choose game(s) :

Choose and enter the number according to the games you want to claim.

Choose game(s) : 1

It will automatically open (in this example) Watch Dogs 2 game page on Epic Games store from your default web browser.

Open multiple games

You can also open multiple games with , and - symbol

1,2     # Open games 1 and 2
1-3     # Open games 1,2,3
1,3-6   # Open games 1,3,4,5,6
6,2-3   # Open games 6,2,3 (order doesn't matter)
2-3,6   # Same with above

Using scraper.extract()

from freeg import scraper

games = scraper.extract()

games would look like this :

[
    {
      "title":"Bridge Constructor",
      "url":"https://gaming.amazon.com/loot",
      "store":"amazon.com",
      "time_left":"26 days left"
   },
   {
      "title":"Watch Dogs 2",
      "url":"https://www.epicgames.com/store/en-US/product/watch-dogs-2/home",
      "store":"epicgames.com",
      "time_left":"4 days left"
   },
   {
      "title":"Stick It To The Man",
      "url":"https://www.epicgames.com/store/en-US/product/stick-it-to-the-man/home",
      "store":"epicgames.com",
      "time_left":"4 days left",
      
    }
]

Notes

freeg's People

Contributors

refk32 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.