parliament-data-scraper
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"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 || ''; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17306
48
0
+ Addedaxios@0.21.4(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.19.2(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@^0.21.1