GithubHelp home page GithubHelp logo

pneumann99 / wg_updater Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 9 KB

A simple NodeJS script to keep a WG-Gesucht.de listing updated and on top of the WG-Gesucht offers page.

JavaScript 100.00%
wg-gesucht

wg_updater's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

konsumgandalf

wg_updater's Issues

Using Systemd to start the script file on boot

I am using the following systemd service file to start the service automatically on boot

# Refer: [systemd.service](https://freedesktop.org/software/systemd/man/systemd.service.html)
[Unit]
Description=WgGesucht Service

[Service]
ExecStart=node /home/lamy/opt/bin/WgUpdater

[Install]
WantedBy=default.target

Further systemd can execute it as often as one wants.

Can you please, may be provide a simpler script file that excludes the part of the code that handles the repetition of the task? This is beneficial as systemd makes it much more user friendly to start on boot and other settings.

May be you can keep this along with your current script, so those who are interested in systemd can use that.

Headless() Problem

TypeError: (intermediate value).headless is not a function
at update_offer (/home/ ___ /wg_updater/wg_updater.js:12:44)
at Object. (/home/ ___ /wg_updater/wg_updater.js:62:1)

Solution:

let options = new chrome.Options();
options.addArguments("--headless");
options.addArguments("--window-size=640,480");

let driver = new Builder()
.forBrowser("chrome")
.setChromeOptions(options)
.build();


But then I get

grafik

Any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.