Re:An industry that helps Chinese cheat their way into and t...
by xviia on Wednesday May 25, 2016 @09:28PM
(#11774580)
How would this be done? What kind of language, etc. would enable this?
Re:An industry that helps Chinese cheat their way into and t...
by eli173 on Thursday May 26, 2016 @04:31AM
(#11776477)
I decided to try it.
https://gist.github.com/eli173/c089c27db9c1302fe4e003716b402...
Perhaps I am the kind of person they are trying to avoid, but I did this in a bit less than an hour. I am very ignorant of the Python library ecosystem, so if I had known the request library better and if I knew an html parsing library, I may have been able to complete this in the time limit. I also suspect there are a few cases which break my solution.
Re:An industry that helps Chinese cheat their way into and t...
by studentrob on Thursday May 26, 2016 @02:24PM
(#11780309)
> if I knew an html parsing library
Beautiful soup https://pypi.python.org/pypi/beautifulsoup4
Re:An industry that helps Chinese cheat their way into and t...
by yeowMeng on Wednesday May 25, 2016 @10:01PM
(#11774705)
Wget/sh/sed/awk/perl soup
Re:An industry that helps Chinese cheat their way into and t...
by gumby on Thursday May 26, 2016 @01:44AM
(#11775799)
A simple shell script with curl piped through sed or awk...
Re:An industry that helps Chinese cheat their way into and t...
by sotojuan on Wednesday May 25, 2016 @09:41PM
(#11774631)
Any language with support for web crawling? I can sorta see it being done in Node with cheerio[1] and an HTTP client.
Re:An industry that helps Chinese cheat their way into and t...
by tracker1 on Thursday May 26, 2016 @12:10AM
(#11775340)
Would probably be my first choice these days too...
Re:An industry that helps Chinese cheat their way into and t...
by xviia on Wednesday May 25, 2016 @09:44PM
(#11774639)
Thanks! Always good to learn new things
Re:An industry that helps Chinese cheat their way into and t...
by WWLink on Wednesday May 25, 2016 @09:39PM
(#11774622)
Some kinda javascript plugin that opens every link on the page, and then every link inside the pages following until it hits philosophy? XD
The best part is you could cap it to 5 levels of recursion before it runs away.
Still no way I'd have that in 15 minutes haha. I could describe it though!
Example: I had a friend who had an interview for company XYZ, "Write a program that clicks the first link in a wikipedia entry and exits when you reach the philosophy page (implement in the language of your choice). You have 15 mins"...
My friend was a really hard working, intelligent, and honest guy and he could not do it... i doubt cheaters could do it cold.