K
K
Kirill2015-04-02 20:53:18
HTML
Kirill, 2015-04-02 20:53:18

Website parsing, post requests using C++. Throw literature, articles?

I need to write an application that would help me synchronize posts on different sites in the future. Car ads, for example. That is, I will study requests from sites, APIs, if any, etc. It is necessary to publish the same content on different sites, taking into account the characteristics of the sites. There are basic knowledge of C ++, but I work mainly with the database. If the question is not clear - write, I will clarify. Thanks in advance to everyone who cares.
PS I would also like to find some theory on authorization through the desktop application.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2015-04-02
@GavriKos

I wouldn't recommend doing this in c++ with basic knowledge. It is better to try it in python - everything will be much easier with parsing there. And it is convenient to make requests to the site using libCurl (there are both for pluses and for python).

S
Sergey, 2015-04-03
@senal

Use C# :)

using System.Net.Http;

public static void f()
{
using (var client = new HttpClient())
{
    var values = new Dictionary<string, string>
    {
       { "thing1", "hello" },
       { "thing2", "world" }
    };
    var content = new FormUrlEncodedContent(values);
    var response = await client.PostAsync("http://www.example.com/recepticle.aspx", content);
    var responseString = await response.Result.Content.ReadAsStringAsync();
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question