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:
    96
    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:
    9,479
    Likes Received:
    806
    What's the website URL?
     
  3. solquest

    solquest Member

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

    joaomgcd Administrator Staff Member

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

    solquest Member

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

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    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:
    96
    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:
    9,479
    Likes Received:
    806
    does the notification show the 2 team's names?
     
  9. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    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:
    9,479
    Likes Received:
    806
    ok, let me know!
     
  11. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    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:
    96
    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:
    96
    Likes Received:
    0
    Or maybe the new AutoWeb will help me doing it?
     
  14. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    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!
     
  15. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Hello.
    Trying to get back to this.
    Is there a way for saving on a variable the code 'dlRGxZlJ' from this website https://www.flashscore.com/soccer/italy/serie-a/
    passing it a variable = Sassuolo.
    Checking on that website I find that code

    <tbody><tr class="event_round"><td colspan="6">Round 12</td></tr><tr id="g_1_dlRGxZlJ" class="odd stage-finished" style="cursor: pointer;"><td class="cell_ib icons left"></td><td class="cell_ad time" title="Click for match detail!">05.11. 20:45</td><td class="cell_ab team-home" title="Click for match detail!"><span class="padr">Sassuolo</span></td>

    What should I write in CSS Queries for having that code written on a variable?
    Another option would be getting the link that is connected with "Click for match detail!" but I have less ideas on how to do it.

    Thanks as usual!
     
  16. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Try enabling the javascript option and then using the query
    Code (Text):
    tr:contains(Sassuolo)=:=id
    and see how that works :)
     
  17. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Ha, that's really amazing!
    Thanks always!
     
  18. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    It worked? :D I didn't even try it, it was just a deduction :D
     
  19. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    It definitely did!
    [I've deleted the question I wrote, I managed to do it]
     
    Last edited: Nov 17, 2017
  20. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    If there are more of these (.soccer-ball), how can I say that I want to get the one in the bottom of the page and not the one on top?
    Thanks!
     

Share This Page