Hello… I want to scrape the team that is playing next from this Fixtures & Results | Man Utd First Team | Manchester United. But I am unable to get the state in the scrape sensor. Can someone please help me with the code?
Thanks for the quick response Tom.
I tried the below codes
- platform: scrape
name: scrapop
resource: https://www.manutd.com/en/matches/fixtures-results
select: "#team__name"
headers:
User-Agent: Mozilla/5.0
and also
- platform: scrape
name: scrapop
resource: https://www.manutd.com/en/matches/fixtures-results
select: ".team__name"
headers:
User-Agent: Mozilla/5.0
Should I be using different codes?
Try:
select: "span#team__name"
still “unknown”
Bugger. I’m no expert at scraping. Hopefully someone who is will be able to help.
Edit: one last try:
select: "span[team__name]"
No worries. Thank you so much for your help
Just edited my post with one more thing to try.
still same state