1.0.13 • Published 1 year ago

@galihrivanto/node-libcurli v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@galihrivanto/node-libcurli

Node.js bindings for curl-impersonate library.

Disclaimer

This original library is from JCMais/node-libcurl and I just make it compatible my usage which more simple and easy to use.

Installation

npm install @galihrivanto/node-libcurli

Development

Clone repository

git clone https://github.com/galihrivanto/node-libcurli.git

Fetch submodules

git submodule update --init --recursive

Ubuntu Prerequisites

Install dependencies:

sudo apt install build-essential pkg-config cmake ninja-build curl autoconf automake libtool
# For the Firefox version only
sudo apt install python3-pip libnss3
pip install gyp-next
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
# For the Chrome version only
sudo apt install golang-go unzip

Red Hat based (CentOS/Fedora/Amazon Linux) Prerequisites

Install dependencies:

yum groupinstall "Development Tools"
yum groupinstall "C Development Tools and Libraries" # Fedora only
yum install cmake3 python3 python3-pip
# Install Ninja. This may depend on your system.
yum install ninja-build
# OR
pip3 install ninja

For the Firefox version, install NSS and gyp:

yum install nss nss-pem
pip3 install gyp-next

For the Chrome version, install Go. You may need to follow the Go installation instructions if it's not packaged for your system:

yum install golang

Build

Setup dependency (curl-impersonate)

./scripts/build-curl-impersonate.sh

Build / Install

npm run build
npm install

examples

node examples/check.js
node examples/impersonate.js
node examples/chrome.js
node examples/safari.js

Usage

see examples folder

License

MIT

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago