Jackiebibili / ticket_tracker_api

Concert ticket price tracking based on Ticketmaster real-time best seats
MIT License
58 stars 8 forks source link

API Crash: General Admission (GA or standing tickets) lacks attributes such as row number #8

Closed Jackiebibili closed 1 year ago

Jackiebibili commented 1 year ago

Problem: General Admission (GA or standing tickets) lack attributes such as row number

We need to add flexibility to functions that handle the attributes pruning

Jackiebibili commented 1 year ago

GA output (pick) that needs to be allowed in pruning attributes

  {
     "type":"general-seating",
     "selection":"standard",
     "quality":0.553531,
     "section":"GA",
     "offers":[
        "GJ6DSNKGGAYDAND4GUYA"
     ],
     "quantity":2,
     "area":"12",
     "descriptionId":"IE5A",
     "shape":"s_107",
     "snapshotImageUrl":"image?systemId=HOST&segmentIds=s_107"
  },

normal output (pick) that is working

  {
     "type":"seat",
     "selection":"resale",
     "quality":0.496583,
     "section":"119",
     "row":"S",
     "offerGroups":[
        {
           "offers":[
              "GN6DINZSGA2DINBRHB6DQMLFG43GKYRVGU"
           ],
           "places":[
              "GEYTSOSTHIYTE",
              "GEYTSOSTHIYTC"
           ],
           "seats":[
              "12",
              "11"
           ],
           "coordinates":[

           ]
        }
     ],
     "area":"2",
     "descriptionId":"IE5A",
     "maxQuantity":4,
     "shapes":"None",
     "snapshotImageUrl":"image?systemId=HOST&sectionNames=119&placeId=GEYTSOSTHIYTE"
  }
Jackiebibili commented 1 year ago

Hi @FrankQixiangGao, you can take a look at the code needs to be fixed at line 39-41 of https://github.com/Jackiebibili/ticket_tracker_api/blob/main/apps/ticketscraping/seat_analysis.py, line 92-97 of https://github.com/Jackiebibili/ticket_tracker_api/blob/main/apps/ticketscraping/seat_analysis.py.

Jackiebibili commented 1 year ago

See the wiki page for enhancement https://github.com/Jackiebibili/ticket_tracker_api/wiki/%5BPOC%5D-Ticket-Scraping-Storage