--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello fellow Rainmeter lovers!
I'm currently working on my first fully OC skin, which shows the previous and next game for any football/soccer team of your choosing. I'm grateful for the help I received from you guys last time I had an issue with this skin, and now I have another problem.
So, I have managed to get a .txt file that contains links to the "Matches" page for all 10,000(!) teams available on the website I'm using. Now what I want to do is to get the team name for each of these teams as stated on their respective pages. I feel there could be different ways of doing this, but what I was thinking of is to use WebParser to retrieve the name and then write that value into the original file. To do this, I've formatted the .txt file to resemble a .ini file and saved a copy of it as a .ini file. Here's a sample of what the list looks like now:
Code: Select all
[M1]
Name=
URL=https://www.besoccer.com/team/matches/07-vestur
[M2]
Name=
URL=https://www.besoccer.com/team/matches/07-vestur-ii
[M3]
Name=
URL=https://www.besoccer.com/team/matches/07-vestur-iii
[M4]
Name=
URL=https://www.besoccer.com/team/matches/12-bingolspor
[M5]
Name=
URL=https://www.besoccer.com/team/matches/1860-munchen
[M6]
Name=
URL=https://www.besoccer.com/team/matches/1860-munchen-ii
Code: Select all
[Rainmeter]
Update=1000
[Measure1]
Measure=WebParser
URL=file:///C:/Users/hp/Documents/Rainmeter/Skins/FlashFTBL/Clubs.txt
RegExp=(?siU)URL=(.*)\r
StringIndex=1
FinishAction=[!SetOption Measure1Name URL "[*&Measure1*]"][!CommandMeasure Measure1Name "Update"]
[Measure1Name]
Measure=WebParser
RegExp=(?siU)<div class="head-content fws-hide player-head text-center">.*<div class="top-row mv10">.*<div class="head-title">.*<h2 class="title ta-c">(.*)</h2>
StringIndex=1
FinishAction=[!WriteKeyValue M1 Name [Measure1Name] "C:\Users\hp\Documents\Rainmeter\Skins\FlashFTBL\Clubs.ini"]
[MeterDummy]
Meter=String
To make it clear, my end goal is just to have a list of team names with their corresponding links. It does NOT have to be a .ini file. I plan to use this in a team selection search bar later on. Hope someone can help me out with this 'cause I'm basically stuck now.