P
P
Pan Propan2015-05-20 22:23:29
Mono
Pan Propan, 2015-05-20 22:23:29

Site parser on Mono. Where to begin??

There is a desire to write a simple parser for a specific site. I want to do it on Mono, why?? I don't know.
Tell me if there is a ready-made library for this purpose ??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Rodyushkin, 2015-05-21
@mgis

Mono? This is a cross-platform analogue of (almost) the .NET Framework, that's all. In principle, if you make a simple console application without being tied to any Windows-specific resources, most often it, when built in Visual Studio, will work under Mono, and vice versa.
The availability of a ready-made library strongly depends on what kind of data you want to get. For parsing HTML, I recommend the SGMLReader package . There is also an HTML Agility Pack as an option.
To work with HTTP, there are tools of the platform itself - for example, HttpClient or the older HttpWebRequest .

P
Pan Propan, 2015-05-22
@mgis

Sergey Rodyushkin : Used the https://github.com/ezaurum/http-client library .
I try like this

using Gtk;
using System;
using Ezaurum.Http.Client;
using System.Net;

class Hello
{
  static void Main ()
  {

    HttpRequestUtils object1 = new HttpRequestUtils();
    Json_data = HttpRequestUtils.GetJson('http://muslimsalat.com/daily.json?key=319b6e0c9e5d35b7d5dd8455ddbcf90e');

  }
}

The description of the method says.
using System;
using System.Net;
How to apply the method correctly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question