Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parliament-data-scraper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parliament-data-scraper - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

package.json
{
"name": "parliament-data-scraper",
"version": "1.1.1",
"version": "1.1.2",
"description": "A parliament member information scraper. Scrapes member details, parties and constituencies.",

@@ -27,5 +27,5 @@ "main": "index.js",

"dependencies": {
"axios": "^0.19.2",
"axios": "^0.21.1",
"memory-cache": "^0.2.0"
}
}
# Parliamentary Data Scraper
Scrapes MPs details, Constituencies and Parties into useful a json format.
Scrapes MPs details, Constituencies, Parties, Government Roles & Groups into a useful json format.

@@ -34,2 +34,3 @@ Currently covers:

scottish-parliament/government-roles.json
scottish-parliament/cross-party-groups.json
```

@@ -36,0 +37,0 @@

@@ -48,3 +48,3 @@ const helpers = require('./helpers.js');

}
if ( item.partyMemberHasPartyMembership.partyMembershipHasParty ) {
if ( item.partyMemberHasPartyMembership && item.partyMemberHasPartyMembership.partyMembershipHasParty ) {
let partyID = item.partyMemberHasPartyMembership.partyMembershipHasParty['@id'];

@@ -51,0 +51,0 @@ mp.party = item.detail['https://id.parliament.uk/' + partyID]['https://id.parliament.uk/schema/partyName'][0].value || '';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc