Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

martijnboers/ticketnak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticketnak

IMPORTANT: Doesn't work until Facebook lifts it's tight restrictions on the Graph API: https://newsroom.fb.com/news/2018/03/cracking-down-on-platform-abuse/

Project aimed to crawl Ticketswap listings on Facebook event and automatically opening the Ticketswap link in your browser as soon as it's posted. This (automatically) reserves the ticket for the user and is faster than refreshing on your own and clicking on the link. Uses official Facebook API and doesn't crawl Ticketswap making it possible to run for hours in the background without getting blocked by Ticketswap.

The current interval is 2 seconds and I'm testing Facebook's request limit.

Prerequisites

Runs on:

  • Python=>3.0
  • Python facebook-sdk

Installing

git clone https://github.com/MartijnDevNull/ticketnak.git
cd ticketnak
virtualenv --python=/usr/bin/python3 env
source env/bin/activate
pip3 install -r requirements.txt
cd src
cp facebook.ini-default facebook.ini

See Running for configration options

Running

Make sure you have the configuration file (facebook.ini) setup with your Facebook event id. This can be found in the URL, for example:

Next create add your FB_APP_ID and FB_APP_SECRET found in Facebook developer. Create a new app if none exist

After this login to Ticketswap and get the session cookie so the ticket is automatically added to cart (TODO: set ticket amount, now default 1)

You can run Ticketnak with:

python3.x ticketnack.py

Replace with your version of Python 3

Built With

  • Facebook SDK - Python SDK for Facebook's Graph API
  • TicketScoop - Automatic reservation of tickets is based on this project

License

This project is licensed under the GPL v3 - see the LICENSE file for details