Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
ml-image-searcher
Advanced tools
NodeJS module NPM package that helps to search for images using instagram hashtags and machine learning object recognition technology.
NodeJS module NPM package that helps to search for images using instagram hashtags and machine learning object recognition technology.
Instagram has gone to great lengths to prevent scraping and other unauthorized access to their public content. This module is dependant on the markup the public-facing instagram.com. Should that change this module might also stop working as intended. You should take this into consideration when deciding whether this module will work for you.
In example below output shows how searching using:
20(cats) / 20(total result)
-> [100%
correct]12(cats) / 20(total result)
-> [60%
correct]npm i ml-image-searcher
note: there are some limitation of loading instagram data, but it still usefull in most cases :)
const IG = require('ml-image-searcher');
IG.getImages('cat').then((ret) => console.log(ret.filteredData))
htmlAll
) response:filteredData
) response:{ "node":
{ "comments_disabled": false,
"__typename": "GraphImage",
"id": "2166483334784860896",
"edge_media_to_caption": "[Object]",
"shortcode": "B4Q5R1Np8Lg",
"edge_media_to_comment": "[Object]",
"taken_at_timestamp": 1572484960,
"dimensions": "[Object]",
"display_url":
"https://instagram.fatz1-1.fna.fbcdn.net/vp/a7d0f86a15a5d4830f08263741c057ec/5E3E0F4B/t51.2885-15/e35/76909697_2616077041746584_1323244633407869990_n.jpg?_nc_ht=instagram.fatz1-1.fna.fbcdn.net&_nc_cat=108",
"edge_liked_by": "[Object]",
"edge_media_preview_like": "[Object]",
"owner": "[Object]",
"thumbnail_src":
"https://instagram.fatz1-1.fna.fbcdn.net/vp/620528b4197d036abda248ccbe36697e/5E61A8F1/t51.2885-15/sh0.08/e35/s640x640/76909697_2616077041746584_1323244633407869990_n.jpg?_nc_ht=instagram.fatz1-1.fna.fbcdn.net&_nc_cat=108",
"thumbnail_resources": "[Array]",
"is_video": false,
"accessibility_caption": "Image may contain: cat" } },
{ "node":
{ "comments_disabled": false,
"__typename": "GraphImage",
"id": "2166483275533936833",
"edge_media_to_caption": "[Object]",
"shortcode": "B4Q5Q-CBmjB",
"edge_media_to_comment": "[Object]",
"taken_at_timestamp": 1572484953,
"dimensions": "[Object]",
"display_url":
"https://instagram.fatz1-1.fna.fbcdn.net/vp/bd226ff8cf673943e32aa28696a9e66e/5E64A3DA/t51.2885-15/e35/73284628_148613809747256_665998994713792293_n.jpg?_nc_ht=instagram.fatz1-1.fna.fbcdn.net&_nc_cat=108",
"edge_liked_by": "[Object]",
"edge_media_preview_like": "[Object]",
"owner": "[Object]",
"thumbnail_src":
"https://instagram.fatz1-1.fna.fbcdn.net/vp/3ff84475c7f81dc9c1e75d6524609b65/5E48B2A9/t51.2885-15/sh0.08/e35/s640x640/73284628_148613809747256_665998994713792293_n.jpg?_nc_ht=instagram.fatz1-1.fna.fbcdn.net&_nc_cat=108",
"thumbnail_resources": "[Array]",
"is_video": false,
"accessibility_caption": "Image may contain: cat" } },
...
}
LISTENER='true'
node index.js
{
originalData, // result based on humans hashtags only
filteredData, // result based on humans hashtags and ML prediction
htmlOriginalData, // originalData images only in html format
htmlFilteredData, // filteredData images only in html format
htmlAll, // both results (htmlOriginalData + htmlFilteredData) in a table
};
FAQs
NodeJS module NPM package that helps to search for images using instagram hashtags and machine learning object recognition technology.
The npm package ml-image-searcher receives a total of 0 weekly downloads. As such, ml-image-searcher popularity was classified as not popular.
We found that ml-image-searcher 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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.