1.1.4 • Published 10 months ago

yad2.js v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

yad2.js

API for Yad2 Website

Installation

npm i yad2.js

Usage

  1. Head over to https://yad2.co.il/
  2. Search for something
  3. Apply filters as you wish
  4. 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);
    };
})();
  1. 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

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago