Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I am the wandering glitch -- catch me if you can.


computers / comp.os.linux.misc / Re: printing a webpage to pdf (that isn't crap)?

SubjectAuthor
o Re: printing a webpage to pdf (that isn't crap)?Fritz Wuehler

1
Re: printing a webpage to pdf (that isn't crap)?

<4420e56b54303e6a37334341d187847a@msgid.frell.theremailer.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=8958&group=comp.os.linux.misc#8958

  copy link   Newsgroups: comp.os.linux.misc
From: fri...@spamexpire-202211.rodent.frell.theremailer.net (Fritz Wuehler)
Subject: Re: printing a webpage to pdf (that isn't crap)?
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
References: <tlnqbbssh@gioia.aioe.org>
Message-ID: <4420e56b54303e6a37334341d187847a@msgid.frell.theremailer.net>
Date: Fri, 25 Nov 2022 07:17:24 +0100
Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!alphared!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128
 by: Fritz Wuehler - Fri, 25 Nov 2022 06:17 UTC

P-P-Pete <ne...@boffin.edu> [P]:
P> Need to convert current bank balances to pdf

Open your browser's web developer tools panel (Ctrl-Shift-I),
and go to the Network tab.

Click the webpage button to view the transactions history on screen
(ie. get them as HTML rather than excel).

Right click on the latest POST/GET HTTP query and copy the
bank's response.

If you are lucky the returned transaction data will be in JSON format.

Use 'jq' or 'cjson' to extract/format the fields of interest
into a text file.

Use your word processor or 'enscript' to convert that file to
ps/pdf.

Once you master the technique and write the 'jq' script, the
whole process takes just a few seconds. Instead of just printing
them, I insert the transactions into a database (only transactions
not seen before are actually getting added, so no duplicates).
This way I have a searchable journal spanning much longer than
my bank's rather limited (6-month, I believe) history range.

If you are not so lucky and cannot get the data in JSON format,
get them as excel, use a javascript library like 'node-xls-json-lc'
to convert them to JSON and continue from there.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor