1

I am looking for a way to automate extracting text from multiple websites to a word document. When pasted into the word doc I need it to paste using "merge formatting". This is how I would like the extracted text to end up after it gets pasted to the word doc - Example

I need the text extractor to only extract text starting from the chapter title "Book 1, Chapter 1 – Early Morning at a Township" to the end of the chapter where it says "previous chapter" but not including "previous chapter". I then need it to move to the next chapter until it reaches the end of Book 21 Chapter 44.

Coiling Dragon: Book 1 - Chapter 1 going until Coiling Dragon: Book 21 - Chapter 44

4
  • websites ARE text (markup) so you will be looking for a parser. for a simple HTML only site, a generic XML parser could be used to extract element bodies, but you would have to write script code to handle the text accumulation, filtering, copying and pasting. for more complicated sites that generate dynamic content serverside or in client scripts, you may find it a little more difficult. Good luck. Commented Jan 14, 2016 at 4:37
  • What code have you got so far?
    – Burgi
    Commented Jan 14, 2016 at 9:55
  • I currently do not have any code written for this yet, to be honest I am not even sure how to write code for scripts. Does anyone have a suggestion for an XML parser?
    – Woz
    Commented Jan 22, 2016 at 10:13
  • @Wozzie honestly you can do this within word pretty easily using vba. Commented Jul 8, 2016 at 17:07

0

You must log in to answer this question.

Browse other questions tagged .