Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make EXE with LA?
#1
Hi Gintaras, 

I seem to be addicted to using LA to crawl web resources. Big Grin  May I have some questions?

1.How to make exe with LA? I've reviewed the instructions(Cookbook) in detail but still don't have a general idea.

2.How to terminate the scripts which are running at one mouse click? It's that possible to run the scripts background (Without opening LA).


3.Why does finding elements by xpath work for some elements and not for others? In the following example, I found the xpath successfully, but when I run it, I get a ”System.NullReferenceException: Object reference not set to an instance of an object. ” Please help me check it where was the problem?

Thank you so much!





Code:
Copy      Help
/*/ nuget -\HtmlAgilityPack; /*/
using HtmlAgilityPack;

script.setup(trayIcon: true, sleepExit: true);
var web = new HtmlWeb();
for (;;) {
    var doc2 = web.Load("https://www.toutiao.com/");
    var title = doc2.DocumentNode.SelectSingleNode("/html/body/div[1]/div/div[5]/div[2]/div[2]/div/div/div/ol/li[1]/a").InnerText;
  
    osdText.showTransparentText($"{title}");
    
     20.s();
}


Messages In This Thread
How to make EXE with LA? - by birdywen - 05-18-2023, 12:10 PM
RE: How to make EXE with LA? - by Gintaras - 05-18-2023, 01:33 PM
RE: How to make EXE with LA? - by birdywen - 05-18-2023, 01:57 PM
RE: How to make EXE with LA? - by Gintaras - 05-18-2023, 02:58 PM
RE: How to make EXE with LA? - by Gintaras - 05-18-2023, 03:08 PM
RE: How to make EXE with LA? - by birdywen - 05-18-2023, 03:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)