npm.io
0.2.0 • Published 3d agoCLI

serpapi-byline

Licence
MIT
Version
0.2.0
Deps
4
Size
680 kB
Vulns
0
Weekly
0
Stars
1

Byline

Byline is a web application and command-line utility for finding your published articles, blog posts, and other published work across the web. It uses Google Search results through SerpApi to create a spreadsheet with links, titles, dates, and other metadata, ready for use in Google Docs, Microsoft Excel, and other software.

Byline's command-line version can use Monolith to create offline HTML backups of your published work. You can also use the spreadsheet with other backup solutions, like ArchiveBox.

Screenshot of Byline in a web browser and Terminal application

How to use the web app

Coming soon!

How to install the CLI app

Byline works on Windows, macOS, and Linux with the Node.js runtime.

Windows

Press the Win + X keyboard shortcut, and select Windows PowerShell (Admin) or Terminal (Admin). Next, copy the below command, paste it into the window (Ctrl+V), and press the Enter/Return key:

winget install -e --id OpenJS.NodeJS.LTS

Open a new PowerShell Admin window or Terminal tab, then run this command:

npm install -g serpapi-byline

You can run byline -help to verify Byline is installed.

Linux

The process for installing Node.js and NPM varies by distribution. Here's how to do it on Ubuntu-like distros:

sudo apt install nodejs npm

Then, install Byline from NPM:

npm install -g serpapi-byline

You can run byline -help to verify Byline is installed.

macOS

Install the Homebrew package manager, then open a new Terminal window/tab and run this command to install Node.js and NPM:

brew install node

Then, install Byline from NPM:

npm install -g serpapi-byline

You can run byline -help to verify Byline is installed.

How to use the CLI app

You need to register for a free SerpApi account to use Byline.

First, open the Terminal or PowerShell again, and set the folder to store the spreadsheets and (optionally) article backups. You could use the Desktop folder with this command:

cd ~/Desktop

Next, log in with your SerpApi account, which will save your API key to a byline-settings.txt file in your current folder:

byline -login

Then run Byline with -author and -site options to create the link list, with -limit set to 20 to use a maximum of 20 search credits:

byline -author "Corbin Davenport" -site howtogeek.com -limit 20

This will create a file called data.csv in your folder containing all links. You can open and edit it in Microsoft Excel, Apple Numbers, LibreOffice, Google Docs, and other spreadsheet applications.

Run byline -help to see more options, like URL and publish date filters.

Byline needs Monolith installed to create HTML backups of links from the CSV file.

Install Monolith on Windows: Press the Win + X keyboard shortcut, and select Windows PowerShell (Admin) or Terminal (Admin), and run this command:

winget install --id=Y2Z.Monolith -e

Install Monolith on macOS: With Homebrew installed, open the Terminal application and run this command:

brew install monolith

Install Monolith on Linux: Check the Monolith README for installation options.

Next, switch to the folder containing your data.csv file and API key, like this:

cd ~/Desktop

Finally, start the backup:

byline -backup

Feature suggestions & bug reports

Found a bug that needs fixing? Have an idea for a feature? Check the issues page first, and if it's not there, please create a new issue!

Keywords