Skip to content

Instantly share code, notes, and snippets.

Félix Baril Freelix

  • Montreal
Block or report user

Report or block Freelix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Freelix
Freelix / SteamGiftsScript.php
Last active Aug 16, 2017
Parse Steamgifts.com to automatically have a chance to win Steam games based on a games list.
View SteamGiftsScript.php
<?php
// To start script --> nohup ./sg.sh >> log.txt &
// To stop script --> ps -ef
// then kill -9 pid
// Some variables
$GLOBALS['user_agent'] = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0';
$GLOBALS['main_url'] = "http://www.steamgifts.com/";
$GLOBALS['numberOfPages'] = 12;
@Freelix
Freelix / hockeyScript.php
Created Oct 29, 2015
Parse NHL.com and send games scores, once a day, directly to your phone with twilio.
View hockeyScript.php
<?php
require "twilio-php/Services/Twilio.php";
class Match
{
public $firstTeam;
public $firstTeamScore;
public $secondTeam;
public $secondTeamScore;
}
@Freelix
Freelix / steamgifts.py
Last active Aug 24, 2017
Generate .exe program to parse Steamgifts.com to have a chance to win Steam games based on your wishlist
View steamgifts.py
import queue
import requests
import urllib3
from bs4 import BeautifulSoup
STEAM_GIFTS_URL = "https://www.steamgifts.com/giveaways/search?type=wishlist"
USER_AGENT = "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
POST_URL = "https://www.steamgifts.com/ajax.php"
COOKIE = {
'PHPSESSID': 'needs to be replaced with your PHPSESSID'
You can’t perform that action at this time.