Update rarbg.js
Browse files123415 unmodified lines20212223242526import { XMLParser } from 'fast-xml-parser';// Single fetchRSSFeeds export for searching torrents on RARBGasync function fetchRSSFeeds(searchQuery) {15 unmodified lines}const pageHtml = await response.text();const torrentLinks = $(pageHtml).find('a[href^="/torrent/"]'); // Finding torrent links on the pageif (torrentLinks.length === 0) {console.log('❌ No torrents found for:', searchQuery);12345615 unmodified lines222324252627282930import fetch from 'node-fetch'; // Ensure you import fetchimport { XMLParser } from 'fast-xml-parser';import cheerio from 'cheerio';// Single fetchRSSFeeds export for searching torrents on RARBGasync function fetchRSSFeeds(searchQuery) {15 unmodified lines}const pageHtml = await response.text();const $ = cheerio.load(pageHtml); // Load the page HTML into Cheerioconst torrentLinks = $('a[href^="/torrent/"]'); // Finding torrent links on the pageif (torrentLinks.length === 0) {console.log('❌ No torrents found for:', searchQuery);
rarbg.js+5-1