Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Text browser with JavaScript

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Text browser with JavaScript

#1 Post by sjsj »

Hello,

Sorry, I speak a little English.

Code: Select all

lynx https://tezfiles.com
Image

I need a (text-based) browser or better for my Debian VPS when supported JavaScript.

I need this JavaScript-based website cookie data. How to?

Cookie (Request Headers):

Code: Select all

pcId=xyz; ...
Image

Please help me. Thanks!

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Text browser with JavaScript

#2 Post by Bloom »

Install package lynx: it can handle cookies.

User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Re: Text browser with JavaScript

#3 Post by sjsj »

Bloom wrote: 2022-02-14 09:09Install package lynx: it can handle cookies.
Dear Bloom,

Yes, I know, but the lynx is not enough, because I think this is not supported JavaScript runs.

Code: Select all

lynx -cfg=/tmp/lynxcfg-cookies -accept_all_cookies -cookie_save_file=/tmp/cookies https://tezfiles.com
I think the tezfiles.com create cookie, but only if the JavaScript enabled. If the JavaScript disabled: no create cookies. This is my problem.

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Text browser with JavaScript

#4 Post by Bloom »

In that case install the package links: it will do both.

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Text browser with JavaScript

#5 Post by Bloom »

Or install Chromium and use it headless:

Code: Select all

chromium  --headless --disable-gpu --dump-dom https://javatester.org/javascript.html |html2text

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Text browser with JavaScript

#6 Post by Bloom »

That last option outputs html code and you need the package htm2text to convert it to plain text. However, this is only a lister and does not allow you to surf interactively.

User avatar
sjsj
Posts: 166
Joined: 2016-10-22 16:26
Has thanked: 3 times

Re: Text browser with JavaScript

#7 Post by sjsj »

Bloom wrote: 2022-02-14 09:30you need the package htm2text to convert it to plain text
I need only cookie. Not need the HTML or plain text. Is it works with chromium?

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Text browser with JavaScript

#8 Post by Bloom »

Try both links and chromium headless to see if they do what you want. If they don't, I'm fresh out of ideas, I'm afraid.

Post Reply