rflechner / ScrapySharp

reborn of https://bitbucket.org/rflechner/scrapysharp
MIT License
346 stars 75 forks source link

browser.NavigateToPage hangs - 2020/04/10 #29

Open eyanson opened 4 years ago

eyanson commented 4 years ago

Hi. I'm testing sample code. NavifateToPage hangs app. Can you help me please?

ScrapingBrowser browser = new ScrapingBrowser(); WebPage homePage = browser.NavigateToPage(new Uri("http://www.bing.com/"));

niko-la-petrovic commented 4 years ago

Same problem.

gbthakkar commented 4 years ago

Same problem, I manage to get the result with ScrapySharp.Network.WebPage homePage = await browser.NavigateToPageAsync(new Uri(formUrl));

but then , Again I want to use below code..where "Submit" method again hang and does not go to next line. PageWebForm form = homePage.FindFormById(searchFormId); form[Nameinput_TxtName] = "khushi"; form.Method = HttpVerb.Post; WebPage postResult = form.Submit(new Uri(postFormActionUrl));

gbthakkar commented 4 years ago

I see that , we have commit comment 'Added async submit methods to PageWebForm' on 31-May-2019, but that does not reflect on nugat package. So if we can publish that on nugat, we can use new fixes. Please do it if you can. Thanks

maliki2 commented 4 years ago

Same problem with me, the browser.NavigateToPage() Hangs

gbthakkar commented 4 years ago

Hi maliki2

Same problem with me, the browser.NavigateToPage() Hangs

Same problem, I manage to get the result with ScrapySharp.Network.WebPage homePage = await browser.NavigateToPageAsync(new Uri(formUrl));

adryzz commented 4 years ago

Same problem.

Budsy commented 3 years ago

I think I'm experiencing a semi-hang, even with the Async method. But only on a shared web hosting service! On my dev machine, I can scan all my site pages in about 1-2 seconds. On the production server it takes 10-20 minutes !!! But the results come out the same usually, sometimes no index files result. I can't figure what's going on over at the web host. SSL ??

vb-mich commented 3 years ago

The problem is still present and in my case using NavigateToPageAsync doesn't return any result. I found that using a console app solves the problem.