class darc.sites.script.Script[source]

Bases: BaseSite

JavaScript links.

static crawler(timestamp, session, link)[source]

Crawler hook for JavaScript links.

Parameters:
  • timestamp (datetime) – Timestamp of the worker node reference.

  • session (requests.Session) – Session object with proxy settings.

  • link (Link) – Link object to be crawled.

Raises:

LinkNoReturn – This link has no return response.

Return type:

NoReturn

static loader(timestamp, driver, link)[source]

Not implemented.

Raises:

LinkNoReturn – This hook is not implemented.

Return type:

NoReturn

Parameters: