1.0.13 • Published 9 months ago
@galihrivanto/node-libcurli v1.0.13
@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-libcurliDevelopment
Clone repository
git clone https://github.com/galihrivanto/node-libcurli.gitFetch submodules
git submodule update --init --recursiveUbuntu 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 unzipRed 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 ninjaFor the Firefox version, install NSS and gyp:
yum install nss nss-pem
pip3 install gyp-nextFor the Chrome version, install Go. You may need to follow the Go installation instructions if it's not packaged for your system:
yum install golangBuild
Setup dependency (curl-impersonate)
./scripts/build-curl-impersonate.shBuild / Install
npm run build
npm installexamples
node examples/check.js
node examples/impersonate.js
node examples/chrome.js
node examples/safari.jsUsage
see examples folder
License
MIT