Skip to content

Commit

Permalink
mundia.lua: don't load as html, as it's not used
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkiver2 committed Aug 30, 2014
1 parent ccfeece commit bd1aa7c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mundia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@ wget.callbacks.get_urls = function(file, url, is_css, iri)

--example url: http://www.mundia.com/us/surnames/aleo
if string.match(url, "%.mundia%.com/[^/]+/surnames/[^/]+") then
if not html then
html = read_fie(file)
end

local surname_lower = string.match(url, "%.mundia%.com/[^/]+/surnames/([^/]+)")
local surname_upper = string.upper(surname_lower)
local country_code = string.match(url, "%.mundia%.com/([^/]+)/surnames/[^/]+")

--chfoo - is it alright is I add all these urls for all countries?
table.insert(urls, { url="http://www.mundia.com/"..country_code.."/Search/Results?surname="..surname_upper.."&birthPlace=Afghanistan" })
table.insert(urls, { url="http://www.mundia.com/"..country_code.."/Search/Results?surname="..surname_upper.."&birthPlace=Albania" })
Expand Down

0 comments on commit bd1aa7c

Please sign in to comment.