J
J
Jedi2017-07-28 15:01:04
linux
Jedi, 2017-07-28 15:01:04

How to automate processes with PHANTOM JS?

How can I run my scripts on someone else's site? So I used to create extensions for Google Chrome, then I started just inserting scripts into the browser console, but now I don’t have enough power. I wrote a bot that plays the game. Every day it grows, more and more! Neural networks + my scripts + several libraries + my weekly scripts (well, as an addition) + and much more. I do not have enough power .. How did I understand this? Yes, it's just that one of the parts of the bot does not have time to fulfill its duties in a given time :). And the power is not enough, I think due to the fact that the capabilities of google chrome are limited, but although it eats a lot of RAM.

As an addition, I note that the interface is not important to me, and the console is enough for me.

  1. Can PhantomJS help me with this?
  2. If 1 is yes, what other alternatives exist.
  3. If 2 is true, what are their advantages over PhantomJS ?
  4. Does Linux have any distribution designed for such purposes?


For now, that's all.

Thanks a lot!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2017-07-28
@PHPjedi

1. Yes, maybe. It is a complete browser based on webkit.
2. Any headless software capable of working with the DOM. CasperJs, Slimer, FireFox, Chrome.
3. Depends on the context of the task. But offhand, you can immediately warn that PhantonJS is based on an old version of the engine that can work out JS incorrectly. And in this case, some latest versions of FireFox or Chome in headless mode will be preferable. It turns out at the moment "oh, damn it, but the phantom does not know how to eat this js".
4. As a finished product, there is none. As a platform - any.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question