Skip to content

Commit

Permalink
Added more support other country domains beyond .com (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dallyhorton authored and justincy committed Aug 22, 2018
1 parent 1f3cc48 commit 846efcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/scrapers/ancestry-person.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var debug = require('debug')('genscrape:scrapers:ancestry-person'),
GedcomX = require('gedcomx-js');

var urls = [
utils.urlPatternToRegex('https://www\.ancestry\.(ca|co\.uk|com|com\.au)/family-tree/person/tree/*/person/*'),
utils.urlPatternToRegex('https://www.ancestryinstitution.com/family-tree/person/tree/*/person/*')
utils.urlPatternToRegex('https://www.ancestry.(ca|co.uk|com|com.au)/family-tree/person/tree/*/person/*'),
utils.urlPatternToRegex('https://www.ancestryinstitution.(ca|co.uk|com|com.au)/family-tree/person/tree/*/person/*')
];

var eventConfig = [
Expand Down
6 changes: 3 additions & 3 deletions src/scrapers/ancestry-record.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var debug = require('debug')('genscrape:scrapers:ancestry-record'),
VerticalTable = require('../VerticalTable');

var urls = [
utils.urlPatternToRegex('https://search.ancestry.com/cgi-bin/sse.dll*'),
utils.urlPatternToRegex('https://search.ancestryinstitution.com/cgi-bin/sse.dll*')
utils.urlPatternToRegex('https://search.ancestry.(ca|co.uk|com|com.au)/cgi-bin/sse.dll*'),
utils.urlPatternToRegex('https://search.ancestryinstitution.(ca|co.uk|com|com.au)/cgi-bin/sse.dll*')
];

var eventsConfig = [
Expand Down Expand Up @@ -388,7 +388,7 @@ function setup(emitter) {
value: 'Ancestry'
})
.setHomepage({
resource: 'http://www.ancestry.com'
resource: 'http://www.ancestry' + utils.getDomain()
});
gedx.addAgent(agent);

Expand Down

0 comments on commit 846efcd

Please sign in to comment.