crawlobject config
This commit is contained in:
@@ -113,7 +113,7 @@ class Crawlobject < ActiveRecord::Base
|
||||
JSON.parse(self.raw)
|
||||
end
|
||||
def self.crawl_htu
|
||||
res = JSON.parse(`python ../microdata/foswikicrawl.py`)
|
||||
res = JSON.parse(`python #{RAILS_ROOT}/bin/#{Rails.config.crawlconfig[5]['bin']} #{Rails.config.crawlconfig[5]['url']}`)
|
||||
res.each do |r|
|
||||
cc=Crawlobject.new(:raw=>r.to_json)
|
||||
cc.objtype=5
|
||||
|
||||
Reference in New Issue
Block a user