Giter Club home page Giter Club logo

ticketnak's Introduction

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

ticketnak's People

Contributors

martijnboers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ticketnak's Issues

Super nice! Maar werkt het echt

Super nice!! Ik had de boel zo draaien en heb de 'bot' vol verwachting aangezwengeld. Maar ik heb het idee dat het niet werkt. Ik heb jouw script gekoppeld aan een event. Ik krijg wel steeds push notificaties via de app maar het script doet verder niets.

Kan dit kloppen? Is het zo dat niet alle aangeboden kaarten op de event page van Facebook komen. En daarom niet door het script worden opgepakt?

Werk aan de winkel

Hey Martijn,

Je hebt mij een tijd geleden aangesproken op Reddit met de vraag of mijn oude bot nog werkte.
Ik zie dat ze ondertussen aardig wat veranderd hebben, en recentelijk hun api nog hebben aangepast.

Kan je mij een update geven met waar je nu mee bezig zodat ik je kan helpen met een nieuwe commit.
Mocht je een voorkeur hebben voor onze communicatie let me know.

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.