This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "twilio-php/Services/Twilio.php"; | |
class Match | |
{ | |
public $firstTeam; | |
public $firstTeamScore; | |
public $secondTeam; | |
public $secondTeamScore; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |