I am trying to do some web-scraping in C++ (I know that performance isn't usually best there), and I need to login to some sites, that have login site called login.aspx. I found some libraries that allows login, but I don't make any of them work (cpr, curl). So the only way that I manage to login was using python and Selenium. But I need to make my program in C++, 'cos python is not on computer that this program will run on. I tried webdriverxx but since I am not very skilled C++ programmer it doesn't work. Output from it: https://pastebin.com/wMFreNFc with using code from github page:
#include <webdriverxx/webdriverxx.h>
using namespace webdriverxx;
int main() {
WebDriver firefox = Start(Firefox());
firefox
.Navigate("http://google.com")
.FindElement(ByCss("input[name=q]"))
.SendKeys("Hello, world!")
.Submit();
return 0;
}
What I need in the end is a library in C++ that will some how be able to login. Thank you for any help
Note: I am on Ubuntu 20.04 LTS, installed as minimal, but program will run on the windows machine at the end