See the scrolling English on the Internet-but there will always be people who want all the data

Source: Internet
Author: User

Today, I saw a small function similar to daily English on a webpage. I think the English is worth looking. But that English8Seconds. I don't have the patience to wait until it is updated. Look at hisSource code. YesJavascriptData is constantly updated later. ViewCode, One of which isEnglish. js. One of the codes is like this.

This. querydb = function (e ){

O. url = "plugins/englishxml/getenglish. asp? S = "+ math. Random ()

O. open ();

}

Okay, you know everything. Enter the URL directly in the browser. The returned result is as follows:

<Querys>

<English>

<! [CDATA ["in Brazil, cannot wait ent forests are very well preserves."]>

</English>

<Chinese>

<! [CDATA [In Brazil, ancient forests are well protected.]>

</Chinese>

</Querys>

The server returns a pureXMLFile, and of course only1Sentence. But I want to get all of them! I was trying to find out its data.File Location. But it seems like this.ASPWeb pages, and have never learned how to inject attacks. You can only use the most stupid brute-force method-click it! Of course, you cannot use your browser to refresh the image.

 

Download it and make it easy. So I decided to writeClientClick it.ProgramThe draft will be finalized in just two hours. The interface is as follows:

 

 

You can see the picture, and I click it.3.3Ten thousand times. Since then5000All the items that were previously flushed are stopped. (In fact, there are8Data entries are not flushed)

When I click it, I think of a problem. Set a totalNThe number of times I have to brush the sentence to ensure that the probability of all the sentences has been moreX %? In theory, no matter how many times I click it, I cannot guarantee that I have written all the sentences.

 

The sentences are savedXMLFile. ViewXMLThe file is inconvenient and can be opened by a program.XmldataproviderSetSourceAttribute ). The program does not support sorting and searching. Because there is no need, all the data can be retrieved fromHereDownload to, isAccessDatabases ...... Then you can do everything you want. Write this program for fear that the technology has not been used recently. Such as XML and encoding.

 

PS: The program is for learning only. Do not use it for other purposes. Directly compile and useVisual Studio 2010.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.