Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with search
#1
Hi,

I have this Search Details: Can someone help me figure out a Search method to get " Yes Cubs/Rockies score 1st Inn"

Wager details for ticket number 662249597-1:

Wager Type: Money Line
Wager Status: Pending
Risk / To Win Amount: 220.00 / 200.00 ($) Accepted 4/15/2022 11:39 AM - (PST)

Sport / Period: Score in 1st Baseball / Game ( Yes Cubs/Rockies score 1st Inn: 0 - No Cubs/Rockies score 1st Inn: 0 )
Line:
Yes Cubs/Rockies score 1st Inn -110
Game Date: 4/15/2022
Game Time: 5:40 PM - (PST)
Pitchers: M Stroman - R - Must Start G Marquez - R - Must Start




As a user:
I am giving this option


GAME : FRIDAY, APRIL 15, 2022 5:40 PM APR 15 - CHICAGO CUBS VS COLORADO ROCKIES (WILL THERE BE A RUN SCORED IN THE FIRST INNING )
MARCUS STROMAN -R VS GERMAN MARQUEZ -R - LISTED PITCHERS
BOTH LISTED PITCHERS MUST START FOR ACTION

Maximum Wager: $500.00
11204 Chicago Cubs / Colorado Rockies Yes
-125
11205 Chicago Cubs / Colorado Rockies No
-105



what should my search be in order to get the code to pick YES, 11204 IS THE GAME I SHOULD PICK?
THANK YOU IN ADVANCE
Reply
#2
What are you trying to do? Do you literally want to find that text in a string, or something else?
Reply
#3
(Apr-16-2022, 07:05 PM)ndc85430 Wrote: What are you trying to do? Do you literally want to find that text in a string, or something else?

i want to find a solution to the search that will give me the option below.
what can i do. what search method should i look for
Reply
#4
What are the rules determining the output you want? This text isn't really in a format whose structure is easy for a program to parse (like XML or JSON would be). Where does it come from? Can you get it in a more structured format? Otherwise, you'll need to parse it yourself, possibly using regular expressions.

I'm not too sure what you mean by "search" here, but if you literally want to find whether some text is in a string, then the find method will do that.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020