#21
|
|||
|
|||
Here it gives 2 links (small + high), and I always like the highest resolution. It can be different with these links, I will try to provide more test links in the future if I run into problems.
**External links are only visible to Support Staff****External links are only visible to Support Staff** |
#22
|
||||
|
||||
You can use REWRITE Linkcrawler Rule to rewrite the URL to parse the rlt_url only.
For this case prefiltering is the best solution as JDownloader cannot know if you are interested in the smaller version or the rlt_url or the yandex link itself
__________________
JD-Dev & Server-Admin |
#23
|
|||
|
|||
"rlt_url" - I am not familiar with this terminology. More details needed.
Google search engine practically does not return any deeper information: Code:
"rlt_url" |
#24
|
||||
|
||||
See your example url, that's the url query parameter that holds the high resolution image in your case
__________________
JD-Dev & Server-Admin |
#25
|
|||
|
|||
There is an application in which the user can view images in Yandex images via webbrowser, and then download the ones they like. Up to this point, a direct link to the image could be obtained as follows:
Code:
urlImage = HD.DocumentNode.SelectSingleNode("//a[@class='MMButton MMButton_type_link MMViewerButtons-OpenImage MMViewerButtons-OpenImage_isOtherSizesEnabled']").GetAttributeValue("href", ""); |
#26
|
|||
|
|||
The application has a function for viewing images from Yandex images via webbrowser and downloading the selected one. I got the link like this:
Code:
1 urlImage = HD.DocumentNode.SelectSingleNode("//a[@class='MMButton MMButton_type_link MMViewerButtons-OpenImage MMViewerButtons-OpenImage_isOtherSizesEnabled']").GetAttributeValue("href", ""); Thought cefsharp would help, but it returns "#" too. Moreover, if you open the developer tools in the same chrome, the link to the image is displayed in the desired class. So, is it possible, through webbrowser or cefsharp, to get me to return the source code of the page with the already existing link to the picture? The ways Code:
var jsResponse = await chromeBrowser.EvaluateScriptAsync(@"document.getElementsByTagName ('html')[0].innerHTML"); if (jsResponse.Success) { string source = jsResponse.Result.ToString(); } Code:
var source = await chromeBrowser.GetSourceAsync(); |
Thread Tools | |
Display Modes | |
|
|