Web Forms

Hello,
I am wanting to make a bot that will connect to a website, select a date (using a calendar type selection (if I can avoid that, that is fine too, but that is what the website uses)), continue to the next form, and enter data. I am familiar with the basics of the language, and I should be able to find the name of the forms I am filling out, but I need help with connecting to websites.
What material should I read to become familiar with this?
Upon searching youtube, I found this video: https://www.youtube.com/watch?v=KKB0K3F1enU
It uses Visual Basic's web browser function. Are there any libraries I can use to make this nearly as simple as the video? I do not wish to display the browser, and I'd rather keep it in a command prompt. (I just want it to load the site, fill out forms, submit)
Also sorry and disclaimer: this isn't as black hat as it sounds. I am just testing something for myself that shouldn't have any negative effects on others.
Last edited on
You can use the WebBrowser even in a console app, of course it's not visible.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "stdafx.h"

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
  WebBrowser^ browser = gcnew WebBrowser ();
  browser->Navigate ("www.google.de");
  
  Console::WriteLine(L"Hello World");
  Console::ReadKey ();
  return 0;
}


Normally libCurl is recommended here on the forum, but it seems not so easy to setup and use.
Topic archived. No new replies allowed.