getting football scorer from Flash Score

Discussion in 'Tasker Guides / Examples / Ideas Forum' started by solquest, Jan 13, 2017.

  1. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Hello.
    I'm using Flash Score for sport results but despite giving me quick notifications for every football goal, it doesn't give me the scorer.
    Can anyone help me getting the scorer with Tasker everytime I receive Flash Score notification for a new goal?
    I've read that I can get info from Flash Score using GET HTTP, but don't know how to use it...
    Thanks!
    Luigi.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,233
    Likes Received:
    398
    What's the website URL?
     
  3. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,233
    Likes Received:
    398
    Hmm, but that page also doesn't show the scorer does it?
     
  5. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,233
    Likes Received:
    398
    Check this out:

    Code (Text):
    Test (106)
        A1: AutoTools HTML Read [ Configuration:URL: http://www.flashscore.com/match/UogxkTEe/#match-summary
    CSS Queries: .soccer-ball ~ .participant-name
    Variable Names: scorer
    Use Javascript: true Timeout (Seconds):60 ]
        A2: Flash [ Text:%scorer Long:Off ]
     
    This should work with the new AutoTools beta: https://joaoapps.com/beta-testing/
    Will get the latest scorer on the page.
    Hope this helps :)
     
  7. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Wow, that sounds amazing...
    The only problem is that when I get a notification from Flash Score app I only know the two teams, while I don't know what will be their match summary link..
    I mean, I won't know the 'UogxkTEe' part of the link..for getting it I've gone to www.flashscore.com, found one match and copied its link..
    Thanks again
     

    Attached Files:

  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,233
    Likes Received:
    398
    does the notification show the 2 team's names?
     
  9. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Hmmm...I'd say yes, but tonight I should get one so I'll let you know exactely what it says
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    4,233
    Likes Received:
    398
    ok, let me know!
     
  11. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Here it is:
    Goal! Team A - Team B [1]:0
    The new goal is the one between [], so it could also be something like 1:[2], for the second goal of the away team.
    Thanks
     
  12. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Maybe can be easier checking Flash Score app instead its website... I attach how the information of the new goal will be shown there (in the summary and in the live commentary).
    Thanks!
     

    Attached Files:

  13. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    Or maybe the new AutoWeb will help me doing it?
     
  14. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    51
    Likes Received:
    0
    I've just subscribed AutoTools beta and tried what you suggested
    and it works perfectly.
    As I said, the problem is that I don't know the exact url for every match (I can't know the code to write between http://www.flashscore.com/match/ and /#match-summary: http://www.flashscore.com/match/UogxkTEe/#match-summary).
    Checking in the source of that website I've seen that with the name of one the two teams (like 'Fiorentina' for example) I can get that code (A7wMZyhf):
    Code (Text):

    <tr id="g_1_A7wMZyhf" class=" stage-scheduled" style="cursor: pointer;" title="">
      <td class="cell_ib icons left"><span class="icons left"><span class="tomyg icon0"></span></span></td>
      <td class="cell_ad time">12.03. 15:00</td>
      <td class="cell_aa timer" title="Click for match detail!"><span>&nbsp;</span></td>
      <td class="cell_ab team-home" title="Click for match detail!">
        <span class="padr">Fiorentina</span>
     
    :)
    So I should
    - save that team on a variable
    - use it for going in the url http://www.flashscore.com/soccer/italy/serie-a/
    - take that code and save it on another varibale (var_code)
    - create that url 'http://www.flashscore.com/match/'var_code'/#match-summary' on another AutoTools HTML read action and take that scorer info.
    Does this sound possible?
    Thanks!
     

Share This Page