I
I
Ilya Nezgovorov2016-10-23 23:40:11
Automation
Ilya Nezgovorov, 2016-10-23 23:40:11

How to write a program that works with the site?

Hello! I can't decide where to start. In general, it is necessary to write a program (.exe, right here on a computer, whatever!, under windows!) with a primitive interface (buttons, input fields, etc.) and so that it can interact with the site. For example: in the program, I enter my login and password, press "login" and it enters the account on the site. After it is required, for example, if the value on the site is "delete", then the program automatically deletes a certain comment. I could not find anything on the Internet for this part ... Please help! What will be required for this? What languages ​​do I need for this?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
I
iBird Rose, 2016-10-23
@sage_mexanic

why transfer the whole admin interface to a windowed application? but if you really really want to

.exe, right here on the computer, whatever!, under windows!

then you take delphi or VisualStudio google in the direction of webkit browser integration. well, in the end you will get something like a browser in a windowed application, where you can already work with your site.

R
Rikcon, 2016-10-23
@Rikcon

Do you have access to the site code?
If so, write an API and work like a white person /
No access ?
Then look for patterns in the links yourself (with your eyes) and send the appropriate requests to the server.

L
lubezniy, 2016-10-23
@lubezniy

Any suitable language - though Delphi. But for each site you will have to write your own and rewrite it in case of changes.

A
Andrey K, 2016-10-24
@kuftachev

At the expense of languages ​​... Any one is suitable here, since GUI ("buttons, input fields ...") is already available even for PHP, although this is the highest degree of perversion.
I would consider two options WPF or Swing/JavaFX. For the first you need to know C #, for the second / third Java.
Then everything is simple, the application sends a request and opens the data on the elements of the graphical interface.
But judging by the question, when you get to the point where you can do this in training, you will understand how wrong the task is and how it all needs to be done.
PS If you have access to the database, then it is better to work with the database, and not with the site.
PPS If there is no access to the database, then such a program has long been called a browser!

R
Rou1997, 2016-10-24
@Rou1997

These are either headless browsers (WebBrowser - IE's Trident, WebKit, Phantom.js, etc.), or networks (HTTP), any language is suitable, most conveniently in C# and Delphi.
But in addition to the language, reverse engineering and debugging skills will be required. Incremental:
view the page code and the current DOM code in the browser;
JavaScript deobfuscation;
sniffing HTTP network requests using browser developer tools and other sniffers like Fiddler, Wireshark, Charles, etc. (mainly for sites with AJAX, there are more of them now);
Debugging JavaScript using developer tools in the browser.
IMHO, this task is quite simple for a programmer, although analytical thinking is required, but it should be a priori, it is much more difficult to build your own architecture, and to learn, it’s enough just not to be too lazy to master debugging tools and tools for repeating actions - browsers and HTTP.

A
Alexey Aleksin, 2016-10-24
@leroyleroy

I would make an application in VisualStudio in C#. Quick and easy, plus for those who have problems with queries, there is a query constructor and delete / alter functions are automatically created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question