Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
textminer
helps you text mine through Crossref's TDM (Text & Data Mining) services:
For changes see the CHANGELOG
Textiner.search
- search by DOI, query string, filters, etc. to get Crossref metadata, which you can use downstream to get full text links. This method essentially wraps Serrano.works()
, but only a subset of params - this interface may change depending on feedback.Textiner.fetch
- Fetch full text given a url, supports Crossref's Text and Data Mining serviceTextiner.extract
- Extract text from a pdfgem install textminer
git clone git@github.com:sckott/textminer.git
cd textminer
rake install
Search by DOI
require 'textminer'
# link to full text available
Textminer.search(doi: '10.7554/elife.06430')
# no link to full text available
Textminer.search(doi: "10.1371/journal.pone.0000308")
Many DOIs at once
require 'serrano'
dois = Serrano.random_dois(sample: 6)
Textminer.search(doi: dois)
Search with filters
Textminer.search(filter: {has_full_text: true})
The object returned form Textminer.search
is a class, which has methods for pulling out all links, xml only, pdf only, or plain text only
x = Textminer.search(filter: {has_full_text: true})
x.links_xml
x.links_pdf
x.links_plain
Textminer.fetch()
gets full text based on URL input. We determine how to pull down and parse the content based on content type.
# get some metadata
res = Textminer.search(member: 2258, filter: {has_full_text: true});
# get links
links = res.links_xml(true);
# Get full text for an article
res = Textminer.fetch(url: links[0]);
# url
res.url
# file path
res.path
# content type
res.type
# parse content
res.parse
Textminer.extract()
extracts text from a pdf, given a path for a pdf
res = Textminer.search(member: 2258, filter: {has_full_text: true});
links = res.links_pdf(true);
res = Textminer.fetch(url: links[0]);
Textminer.extract(res.path)
Coming soon...
FAQs
Unknown package
We found that textminer 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.