Once you've written it, you can test it by clicking Dry Run. Options of this Agent are written as follows (if you paste mine, you need to remove the comment). Let's create a new WebsiteAgent (WebsiteAgent can grab web information, Huginn has many other agents, you can see it in the official document) In the previous section, we located the element and started writing the Huginn Agent. The CSS selector: 4.2 Writing method of page fetching Agent You can also get it by right-clicking on the A TAB - Copy - Copy Styles (or copy CSS selectors). You can see that the uIGS property can locate the desired information, so the CSS selector is a. I need to get three pieces of information: the author, the article name, and the article URL So we need to analyze the page first, through THE CSS selector to locate the elements we want, using the why god's public account for example. Huginn actually collects data by grabbing page elements. The resulting Huginn Scenarios are shown below, one by one.Ĥ.1 Capture of wechat public accounts: Analysis of Sogou'S wechat page ![]() 4 Production ProcessĪll the problems have solutions, so let's get started. Huginn has the ability to convert collected data into RSS feeds. (FOR the rest of the article, I assume that the reader has mastered the basics of Huginn.) 3.3 How to process and convert the collected data into RSS feed? In general, Huginn is a tool that can collect and process web information. ![]() This time the Huginn turn appeared, this article The second half of "Cinematography" is a tutorial from Huginn's latest movie. I feel that the first method meets my needs, so I use the first method to collect. I think you can use Python script to simulate the mouse click to obtain the URL of the article, but the technical difficulty is too high. You can see all the articles of the official account in the wechat client. This way you can get the latest articles, but you can't get more than one article at a time. After clicking on the latest article, the page of the wechat official account will be redirected to the article. You can check the latest articles of the official account through Sogou wechat /.
0 Comments
Leave a Reply. |