You can initialize a new Pornsearch instance using the constructor or the static search factory method. By default, the instance uses the pornhub driver. You can specify a custom driver and query during initialization.
Using the constructor
const searcher = new Pornsearch('query', 'pornhub');
Using the static search method
This is a shorthand for creating a new instance with the default driver.
const searcher = Pornsearch.search('amateur');
// Create a searcher
const searcher = new Pornsearch('query', 'pornhub');
// OR using the static factory
const searcher = Pornsearch.search('amateur');