yad2.js
v1.1.4
Published
unofficial type safe API for yad2.co.il
Downloads
37
Maintainers
Readme
yad2.js
API for Yad2 Website
Installation
npm i yad2.js
Usage
- Head over to https://yad2.co.il/
- Search for something
- Apply filters as you wish
- Copy the following into the console. every time you apply filter - you will get the complete URL
(() => {
// Save a reference to the original open method
var originalOpen = XMLHttpRequest.prototype.open;
// Override the open method
XMLHttpRequest.prototype.open = function(method, url) {
// Check if the URL contains pattern
if (/\/feed-search-legacy|\/api\/feed\//.test(url)) {
alert("Copy this URL: " + url);
}
// Call the original open method
originalOpen.apply(this, arguments);
};
})();
- Copy the URL and use it
import { feedSearch } from 'yad2.js'
const {responseData} = feedSearch('<URL>')
console.log(responseData.data) // TypeScript friendly!
Features
- ✅ TypeScript friendly
- 🍃 Super Lightweight
- 🚀 Fast
Todo
Solve Captches using 2captcha