shohsite, Не аналог, а библиотека, он пожалуй есть везде. =) Если админ клик-клуба не идиот, то ты не сможешь имитировать поведение браузера... Ты не сможешь выполнить js (без браузера), на этом он и может словить накрутку. Слышал, что есть какие-то скрипты которые всё таки как-то исполняют js, но доказательств этому я не нашёл. =)
Из официального FAQ Curl:
3.14 Does curl support Javascript or PAC (automated proxy config)?
Many web pages do magic stuff using embedded Javascript. Curl and libcurl have no built-in support for that, so it will be treated just like any other contents.
.pac files are a netscape invention and are sometimes used by organizations to allow them to differentiate which proxies to use. The .pac contents is just a Javascript program that gets invoked by the browser and that returns the name of the proxy to connect to. Since curl doesn't support Javascript, it can't support .pac proxy configuration either.
Some workarounds usually suggested to overcome this Javascript dependency:
- Depending on the Javascript complexity, write up a script that
translates it to another language and execute that.
- Read the Javascript code and rewrite the same logic in another language.
- Implement a Javascript interpreter, people have successfully used the
Mozilla Javascript engine in the past.
- Ask your admins to stop this, for a static proxy setup or similar.
Сам натыкался на подобную защиту, только при парсинге. В ресурсах HTML был только макет страницы и я никак не мог поймать то, что генерирует js ПОСЛЕ этого, не помню как, но распарсить я всё равно смог. =)