B i G S N i F

Silentium est aurum. Scientia potentia est.

1

What is ?

Data parser, data crawling, ....
  • Parsing of datas
  • Cross parsed datas with a template to parse again, more deeper ...
  • Collect datas with pretties presentations
  • Make meta forms.

 

  • 1

    Inspect first !

    with any browsers
  • 2

    Write the 'balisage'

    CSS or xpath
  • 3

    Check the actions

    Only clic
  • 4

    See the results

    Under control
=

API

Inter APP Communication.

It is possible now to exchange collected datas.

RoR technology with net/http included or other RESTFUL gem ot make a GET

Also possible to get with ajax

Receive a json response

Exploitation

# __________________
# --- COM. INTER APP.
# __________________
url = 'http://bigsnif.herokuapp.com/balises/traitement?id=218'
resultats=self.get_big_snif_data(url)
resultats.each do |resultat|
   resultat.each_pair do |k, v|
      puts("______________ #{k.to_s} ")
      # --- treat with hash
      vector = v.to_h
      # --- treat with array
      v.each_pair do |key, value|
         s = " *** " +key.to_s + " : " + value.to_s
         puts(s)
      end
   end
end


 

Main method

def get_big_snif_data(url)
result = ""
uri = URI(url)
response = Net::HTTP.get(uri)
result = JSON.parse(response)
# sleep 2
case response
when Net::HTTPSuccess
result = JSON.parse(response.body)
when Net::HTTPRedirection then
location = response['location']
warn "redirected to #{location}"
fetch(location, limit - 1)
else
# response.value
puts "response else"
puts response.inspect
end
return result
end

About

This web app is made with ProtoCLIC.com (© SoftEstoril)

RoR technology

Espace Réservé aux membres

LOGIN

_______ BIGSNIF _______
S O F T E S T O R I L