
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@dev-alisson-fernandes/get-files-by-css-selectors
Advanced tools
Download files from url using css selectors to find the source of the files
This package is recommended for situations where you want to download the files of a site by it doesn't have an option like a download button or an easy way to do it
Node | axios | puppeteer |
16.13 | 1.3.1 | 19.6.3 |
Install @dev-alisson-fernandes/get-files-by-css-selectors as a npm module
npm i @dev-alisson-fernandes/get-files-by-css-selectors
// import
import GetFilesByCssSelectors from '@dev-alisson-fernandes/get-files-by-css-selectors';
const getFilesByCssSelectors = new GetFilesByCssSelectors;
// define params
let randomSite = 'https://twitter.com/UOLEconomia';
let cssSelectors = 'img[class~="css-9pa8cd"]';
let attrName = 'src';
// run
await getFilesByCssSelectors.run(randomSite, cssSelectors, attrName);
// define params
let randomSite = 'https://www.instagram.com/uoloficial/';
let cssSelectors = 'img[class="x5yr21d xu96u03 x10l6tqk x13vifvy x87ps6o xh8yej3"]';
let attrName = 'src';
// run
await getFilesByCssSelectors.run(randomSite, cssSelectors, attrName);
// show array logs in the end
getFilesByCssSelectors.getLogs();
// Disable showing logs durant run process
getFilesByCssSelectors.setConfig({ infiniteScroll: false });
By default, all pages will be scrolled to the end before search elements, but you can disable this behavior with the code below
getFilesByCssSelectors.setConfig({ infiniteScroll: false });
GNU General Public License v3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
FAQs
Download files from url using css selectors to find the source of the files
We found that @dev-alisson-fernandes/get-files-by-css-selectors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.