headless browser in DSM for python

Currently reading
headless browser in DSM for python

100
11
NAS
DS412+
don't if this is the correct subgroup to ask, please move there if needed.

-------
anyone tried above topic? would be nice to have a self-contained headless browser like PhantomJS...

The current possible headless browsers like Firefox or Chrome still need a complete installation... (aka no-go)



thanks for sharing your experience/ thoughts.
 
Last edited:
Why I cannot edit the post anymore?

BTW: it seems even if use node.js (DSM included) also need Chrome or Firefox installed, to be able to use headless browser..

Any comments are appreciated!

It seems the only way is go Docker?
 
Last edited:
thanks for taking time...

really fascinating when learning docker => Keras model => Tensorflow => eager execution ... hope I could understand these and try these soon... or one day.. ;-)
 
I installed Firefox in Docker ubuntu... file exchange with host(synoNAS) also works...
but get disappointed about Synology & DSM, why do we need to install another Linux(ubuntu) in a encapsulated "Docker" and then can we "apt install firefox", such a redundant use of SynoNAS( running GNU-linux)...

now within this encapsulated Linux, I have to setup development env. again (user, profile, python etc.)

Would that be possible just simply install firefox/chrome into SynoNAS as it is already a Linux?
 
Would that be possible just simply install firefox/chrome into SynoNAS as it is already a Linux?
Just my personal view: DSM NAS is an appliance that happens to be based on tailored version of Linux. The appliance supports different functions through mandatory packages and user-installable packages. This is the official mechanism for adding features. There is access to the underlying DSM Linux for administrators, not standard users, which implies it's provided for maintaining the platform and not day-to-day functionality.

As such (and why I don't use the DSM Linux as a general purpose device) when updating DSM there is no guarantee that any modifications will not be removed or disabled, not for any malicious reason but generally through the assumption of the upgrade process not expecting user modifications and so overwriting a whole set of folders.

The docker approach means you can update DSM and pretty well know that your contains should still work afterwards.

Of course there's nothing to stop you trying to mod the Linux, but it's not for me!
 
just found out PhantomJS still works! with this:

Python:
driver.set_window_size(1024, 768)   # ! important

BTW: For 3 headless browser the speed ranks (fast to slow) as Chrome, PhantomJS, FF.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Ok. I just found out! I'm now using vim-plug. It works as flawlessly as it does in regular Linux boxes...
Replies
1
Views
1,821
Hello, I’m looking for someone able to write script for Syno DSM having good knowledge of DSM systems...
Replies
0
Views
821
Hello, I am building a 3rd party package which will display php web pages within a DSM UI For the UI...
Replies
0
Views
1,545
  • Question
Phew panic over! Thanks for clarifying!
Replies
6
Views
4,361
Hello there, I'm currently running an DS710+ modded into DSM 6u7 via tinkering. And I do like it how it...
Replies
0
Views
2,431
Seems fixing bad code in a forum is not that easy, that's why it's published on github now...
Replies
4
Views
4,166
I don't have /dev/synobot because the device has not started, I'm accessing to it by telnet. So my problem...
Replies
12
Views
3,474

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top