@voidpkg/Scrapper
Gemeinschaft
Wenn Sie Fragen haben oder helfen möchten, schließen Sie sich unserem Discord -Server an.
Installation
Dies ist ein Node.js -Modul, das über die NPM -Registrierung verfügbar ist. Die Installation erfolgt mit dem Befehl npm install :
$ npm install @voidpkg/scrapper
Verwendung
const { Engine } = require ( '@voidpkg/scrapper' ) ;
Engine . google ( 'Void Development' , {
proxies : [
{
host : '0.0.0.0' ,
port : 8080 ,
auth ?: {
username : 'clqu' ,
password : '123456'
}
}
]
} ) . then ( console . log ) . catch ( console . error ) ; Motor -API
/*
types: 0 = Search, 1 = Suggestions, 2 = Images
*/
Engine . google ( query , options , type ) ;
Engine . bing ( query , options , type ) ;
Engine . youtube ( query , options ) ;
Engine . wikipedia ( query , options ) ; Mit Konstruktor
const { Google , Bing , YouTube , Wikipedia } = require ( '@voidpkg/scrapper' ) ;
const proxies = [
{
host : '0.0.0.0' ,
port : 8080 ,
auth ?: {
username : 'clqu' ,
password : '123456'
}
}
] ;
const google = new Google ( { proxies } ) ;
const bing = new Bing ( { proxies } ) ;
const youtube = new YouTube ( { proxies } ) ;
const wikipedia = new Wikipedia ( { proxies } ) ;
// Search
google . search ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ;
bing . search ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ;
youtube . search ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ;
wikipedia . get ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ;
// Suggestions
google . suggestions ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ;
bing . suggestions ( 'Void Development' ) . then ( console . log ) . catch ( console . error ) ; Motoren
| Name | Zustand |
|---|
| Google -Suche | ✅ |
| Google Vorschläge | ✅ |
| Google -Bilder | |
| Bing -Suche | ✅ |
| Bing -Vorschläge | ✅ |
| Bing -Bilder | |
| Wikipedia -Suche | ✅ |
| YouTube -Videos suchen | ✅ |
Optionen
Google
| Name | Erforderlich | Typ | Standard |
|---|
| Mkt | | Saite | en-us |
| Seite | | Nummer | 1 |
| Täter | | Nummer | 10 |
| sicher | | aus, aktiv, hoch, mittel, sicher definiert | aus |
| Header | | {[Schlüssel: String]: Any; } | undefiniert |
| Stellvertreter | | Proxy [] | undefiniert |
| Abfragen | | {[Schlüssel: String]: Any; } | undefiniert |
Bing
| Name | Erforderlich | Typ | Standard |
|---|
| Mkt | | Saite | en-us |
| Seite | | Nummer | 1 |
| Täter | | Nummer | 10 |
| sicher | | aus, mäßig, streng | aus |
| Header | | {[Schlüssel: String]: Any; } | undefiniert |
| Stellvertreter | | Proxy [] | undefiniert |
| Abfragen | | {[Schlüssel: String]: Any; } | undefiniert |
YouTube
| Name | Erforderlich | Typ | Standard |
|---|
| Header | | {[Schlüssel: String]: Any; } | undefiniert |
| Stellvertreter | | Proxy [] | undefiniert |
| Abfragen | | {[Schlüssel: String]: Any; } | undefiniert |
Wikipedia
| Name | Erforderlich | Typ | Standard |
|---|
| Sprache | | Saite | en |
| Header | | {[Schlüssel: String]: Any; } | undefiniert |
| Stellvertreter | | Proxy [] | undefiniert |
| Abfragen | | {[Schlüssel: String]: Any; } | undefiniert |
Proxy
| Name | Erforderlich | Typ |
|---|
| Gastgeber | ✅ | Saite |
| Hafen | ✅ | Nummer |
| Auth | | {Benutzername: String; Passwort: String; } |
Wie bekomme ich kostenlose Stellvertreter?
- Webshare (empfohlen)
- Proxyscape
- Proxylist
- Proxydb
- Proxynova
Lizenz
MIT