One of the key features of Tasker is HTTP get. With this action, you can just retrieve any data from any web page. This opens a world of possibilities! This is also a basic thing that you need to know with Tasker. It will help you with a lot of other tasks when you know how this work. As an example, let’s retrieve the top sports news headline of today from the Washington Post. We’re actually going to use the RSS Sports Feed from the Washington Post. As a feed is often cleaner and easier to read but not in this case.
For this tutorial, we will be using Autovoice & Tasker. You can also just skip the tutorial and download the profile and the end of the post. But we would strongly advise to read through the tutorial anyway.
Let us first visit view-source:http://feeds.washingtonpost.com/rss/sports as we really need the source code of the page
Let’s start by creating the command in Autovoice: Profiles => Event => Plugin => Autovoice => Recognized
The Hard Way => Command Filter => Sports Headline Today => Tick Box: Contains All (With this feature, you can say to Jarvis: Give me the Sports Headline of Today, What’s today the Sports Headline,… As long as it contains all words from the Command Filter. If you often forget the specific command like I do, this is the perfect solution!)
Now let us create the task:
- Net => HTTP Get =>
Path: rss/sports (always put everything after the extension in Path)
Output file: Sports.txt
2. File => Read File =>File: sports.txt => To Var: %sports
3. Variable Split => Name:%sports => Splitter: <title><![CDATA[ (this is most of the time unique per website)
But we don’t need the title of the page but the title of the first headline! So here we pointed out to Tasker where our information begins.
4. Now let us tell Tasker where our information ends and Jarvis will read out all information in between. Variable Split => Name:%sports2 => Splitter: ]]
5. Alert => Say => Text: %sports 21 (which will read out all the information)
Let us know if this worked out for you or drop a comment below and we will find the solution together.