Comments (6)
We now have to parse this javascript: http://www.cabaretpoa.com.br/js/agenda.js
from semprenalista.
Oh gosh, document.write? Anyway, that thing needs a CI.
from semprenalista.
https://github.com/jbarnette/johnson
from semprenalista.
Temporary workaround while
"/Library/Ruby/Gems/1.8/gems/johnson-1.2.0/lib/johnson/spidermonkey/runtime.rb:36: [BUG] Segmentation fault" is not solved.
from semprenalista.
We could just extract it:
1.8.7 :035 > st = Net::HTTP.get_response(URI.parse('http://www.cabaretpoa.com.br/js/agenda.js'))
=> #<Net::HTTPOK 200 OK readbody=true>
1.8.7 :036 > st.body
=> "document.write('<li style=\"border-bottom:none;\"> </li>');\n//document.write('<li>Segunda - 14/11 - <span>Street Style Porto Alegre</span><a href=\"street-style-poa.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>Ter\347a - 15/11 - <span>Festa de Finaleira da Bienal</span><a href=\"bienal.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>Quarta - 30/11 - <span>Anivers\341rio Cabaret!</span><a href=\"cabaret.htm\" target=\"_top\">Saiba mais </a></li>');\n//document.write('<li>Quinta - 24/11 - <span>E-SOUTH</span><a href=\"e-south.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>Sexta - 25/11 - <span>AMN\311SIA</span><a href=\"amnesia.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>S\341bado - 26/11 - <span>ROCKWORK</span><a href=\"rockwork-orange.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>Domingo - 27/11 - <span>GRAXA</span><a href=\"graxa.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li> </li>');\ndocument.write('<h3 style=\"margin-top:25px;\">Dezembro:</h3>');\ndocument.write('<li>Quinta - 29/12 - <span>Indiada</span><a href=\"indiada.htm\" target=\"_top\">Saiba mais</a></li>');\ndocument.write('<li>Sexta - 30/12 - <span>ROCKPOCKET</span><a href=\"rockpocket.htm\" target=\"_top\">Saiba mais</a></li>');\ndocument.write('<li>S\341bado - 31/12 - <span>Last Nite</span><a href=\"last-nite.htm\" target=\"_top\">Saiba mais</a></li>');\ndocument.write('<li style=\"border-bottom:none;\"> </li>');\ndocument.write('<h3 style=\"margin-top:25px;\">Janeiro:</h3>');\ndocument.write('<li>Quinta - 05/01 - <span>ROCKET</span><a href=\"rocket.htm\" target=\"_top\">Saiba mais</a></li>');\n//document.write('<li>Sexta - 06/01 - <span>ROCKPOCKET</span><a href=\"rockpocket.htm\" target=\"_top\">Saiba mais</a></li>');\ndocument.write('<li>S\341bado - 07/01 - <span>mycool decaDANCE</span><a href=\"mycool-decadance.htm\" target=\"_top\">Saiba mais</a></li>');"
1.8.7 :037 > st.body.scan(/href=\"([a-z\-.]*)/)
=> [["street-style-poa.htm"], ["bienal.htm"], ["cabaret.htm"], ["e-south.htm"], ["amnesia.htm"], ["rockwork-orange.htm"], ["graxa.htm"], ["indiada.htm"], ["rockpocket.htm"], ["last-nite.htm"], ["rocket.htm"], ["rockpocket.htm"], ["mycool-decadance.htm"]]
from semprenalista.
The discount list is now an iframe: <iframe src="listas/lista-indiada.htm?var=0000000001"
from semprenalista.
Related Issues (12)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semprenalista.