Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@grodno-city/grodno-gov-renting-scraper
Advanced tools
Readme
Scraper make requests to http://grodno.gov.by/ru/main.aspx?guid=7101
yarn add @grodno-city/grodno-gov-renting-scraper
or
npm install --save @grodno-city/grodno-gov-renting-scraper
const { extract } = require('@grodno-city/grodno-gov-renting-scraper')
const run = async () => {
const result = await extract()
console.log(result)
}
run()
Provided result has "premises by organization" format, so it will something like:
[
{
name: 'Унитарное жилищное ремонтно-эксплуатационное предприятие Ленинского района',
premises: [
...
{
address: 'ул. Академическая, 14',
description: 'Нежилое изолированное помещение, на 1,2 этаже здания.',
areas: '50,82; 39.0; 34.86;30.1; 14.4',
appointment: 'офис, оказание услуг',
contact: '43-04-47'
}
...
]
}
]
Enhancers can transform specific fields to machine-readable format
Transfrom areas
field to array of numbers or objects
const { extract, enhancers } = require('@grodno-city/grodno-gov-renting-scraper')
const { areaEnhancer } = enhancers
const run = async () => {
const result = await extract()
result.forEach(organization => {
organization.premises.forEach(premise => {
const enhancedAddress = areaEnhancer(premise.areas)
console.log(enhancedAddress)
})
})
}
run()
Areas array can contains a numbers or an objects:
areas: [12, 50, {
apartmentNumber: '24',
area: '44.4'
}]
Under MIT license
FAQs
Scrap premises rented by Grodno government
The npm package @grodno-city/grodno-gov-renting-scraper receives a total of 1 weekly downloads. As such, @grodno-city/grodno-gov-renting-scraper popularity was classified as not popular.
We found that @grodno-city/grodno-gov-renting-scraper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.