How can I scrape the current webpage with php/javascript? -


I created the following webpage to create interactive blog lists:

Basically, the user picks the numbered The TODO's list and each task is placed in a unique ID with its own ID, the user can add notes to the task (done with Javascript) and when this task is done to hide the green color Can check on Are there.

I want to add an export button which will generate a report. The tasks were completed and were not in the notes filed by the user. After some searching, I understand what I want to do is scrape the page, but I am not the best way to do this. Many articles and tutorials that have been found with Google include scraping other sites and it is not really understood how I can iterate on each page on the page.

Full source here: http: // Pastebin.com/r7v3p5jk/code>

Any suggestions?

The approach is completely false, unfortunately, to provide the "export" feature you describe Your page should be returned to the server with a parameter, which indicates that "export" is desired; the server should set some "content-disposed" headers like attachment; File name = "export.txt" (or whatever you want the file name).


Comments