soeka Posted December 8, 2017 Report Share Posted December 8, 2017 Anyone please help with this url: https://chromium.woolyss.com/api/v3/?os=windows&bit=64&type=stable-codecs-sync&out=string It opened in browser, but ketarin always show an error. Link to comment Share on other sites More sharing options...
shawn Posted December 8, 2017 Report Share Posted December 8, 2017 usually this means that the site is performing user-agent sniffing and setting a session cookie in order to ensure only "real" visits are allowed to download. you can try changing the user-agent on the advanced tab, and/or attempting to handle session cookies. it's usually easier to find another source site though. Link to comment Share on other sites More sharing options...
soeka Posted December 9, 2017 Author Report Share Posted December 9, 2017 Solved. It turns out I can get the return value of the api with Invoke-WebRequest, then put the value in textual content and process them with regex. This is simple step for anyone who might be interested (all variables are textual content): Create {api} : Invoke-WebRequest "https://chromium.woolyss.com/api/v3/?os=windows&bit=64&type=stable-codecs-sync&out=string" Create {apiv} : {api:ps} Create {version} : {apiv:regex:(?<=version\=)[\d.]+} Create {url} : {apiv:regex:(?<=download\=)[^;]+} Done. Link to comment Share on other sites More sharing options...
shawn Posted December 9, 2017 Report Share Posted December 9, 2017 thanks for sharing your solution Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now