
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
@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
The npm package @dev-alisson-fernandes/get-files-by-css-selectors receives a total of 0 weekly downloads. As such, @dev-alisson-fernandes/get-files-by-css-selectors popularity was classified as not popular.
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
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
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.