Simplest technique to collect text from websites into a program/single document?

5

2

I'm having trouble finding an efficient way to gather info I find while researching a particular topic on the web. First, I used to hightlight pieces of information and paste into Word but that wasted a lot of time since I have to click on Word; paste; close etcetera.

Then I looked into Onenote and Evernote. Well, I can just right-click and save the whole page or bits to Evernote. But every new bit I collect saves in a new document. So, I end up having lots of documents with one-liners. Does Evernote have a way to correct this?

What I'm looking for is a method/software which allows me to collect selected lines of text from a webpage in a streamlined way. I don't want to have to open and paste every time I want to save something. Also, I need a program that allows me to gather info in the same single document for the whole session of reasearch on one particular topic.

Any tips, programs or methods?

verve

Posted 2011-12-05T21:25:57.313

Reputation: 2 357

Do you want to preserve formatting, or is plain text okay? – iglvzx – 2011-12-06T00:18:34.773

Plain text is fine. Having both as an option is good too. You got an idea? – verve – 2011-12-06T21:59:34.003

Is the content you are trying to save follow any type of known pattern? IE, content in bold, uses certain words, is a select size (one line, one paragraph) – ehime – 2011-12-05T23:38:50.087

Sometimes just a line, sometimes a paragraph. No known pattern. – verve – 2011-12-05T23:51:16.963

Well, I always use IE 8--that a pattern? – verve – 2011-12-06T22:08:03.407

IE as in 'id est'/that is, not internet explorer ;p – Journeyman Geek – 2011-12-07T02:30:50.340

Answers

1

Basically you have two ways of easily collecting text to the same file.

Use a scripting program like AutoHotkey

In order to collect text, I started out with a simple AutoHotkey script. AutoHotkey is an amazing tool. Just put a bit of effort in learning the basics and you will be able to make your computer work a lot easier. The main point of using AutoHotkey for most users is creating hotkeys for common tasks. Here's an example for a hotkey that will copy the selected text and paste it at the end of the file mynotes.txt without opening it.

^+c:: ; Control-Shift-C as a hotkey
Sendinput ^c ; copy selection, mimicks control-c
Sleep 1000 ; wait 1 second until clipboard is full, use at least 300
FileAppend, `n`n%clipboard%, C:\folder\mynotes.txt ; Add clipboard content to the end of a text file. Insert 2 new lines before inserting the clipboard with `n`n
Return

This works very reliably. Save the code above in an ahk file and place it in your startup folder. This way it will run when you boot your computer. Realize that you have to change the file path from C:\folder\mynotes.txt to the path where you will want to save your file. Vary the file path according to your own needs.

If need be, you can expand the AutoHotkey script to include a time stamp and/or the website the text was copied from (making it similar to Evernote). If you want to know how to do that, I suggest you read up on AutoHotkey basics

For would-be users of AutoHotkey I recommend reading this tutorial over at eHow: http://www.ehow.com/how_8506399_can-keyboard-do-repeatable-tasks.html

Use a ready made app like ClipTrap

And one more thing: I've just remembered a small freeware tool that does something very similar. It's called ClipTrap and it is for Windows: http://skwire.dcmembers.com/fp/?page=cliptrap. There are no configuration options, though. And it does not save any formatting (like HTML or RTF), though the AutoHotkey script does not either.

user 99572 is fine

Posted 2011-12-05T21:25:57.313

Reputation: 3 173

I have no idea whatsoever on how to run "scripts"! People talk about it a lot but I still have no idea on how to implement them. – verve – 2011-12-06T22:04:11.130

I have edited my answer to make it more understandable to non-technical users – user 99572 is fine – 2011-12-06T23:13:38.813

@user99572_is_fine +1 for AutoHotkey. – iglvzx – 2011-12-07T02:12:42.167

I understand more now. So, the script will only work if I highlight the text and at the site itself... I right-click copy + paste and it will autotomatically send it to the open Notepad file? How does it know which file to go to if there are many open files? I have a dictionary program that shoots up when I press Ctrl + C; will that interfere? – verve – 2011-12-09T01:57:36.940

The sample script has been set to react on Ctrl-Shift-C. It will press Ctrl-C, as I see no other way of copying text with AutoHotkey. There might be a conflict with your other program. The script will know which file to paste the text into because you have told it the file path in the 4th line under FileAppend. – user 99572 is fine – 2011-12-09T09:17:01.480

So much to learn. Cliptrap doesn't save HTML links, right? – verve – 2011-12-14T21:50:18.427

no, it does not. It saves pure text. – user 99572 is fine – 2011-12-15T20:02:29.073

0

I don't know of anything for IE, but in Firefox I use a plugin called Zotero. It's specifically designed as a research assistant. You can create notes in it and paste right into it without having to tab out. If you're open to using a different browser, you might look into that.

SaintWacko

Posted 2011-12-05T21:25:57.313

Reputation: 1 482

What is "tab out"? – verve – 2011-12-05T23:50:04.047

Hold ALT press tab, release ALT, it will quickly switch between open windows. Other control keys are CTRL + C to Copy, CTR + V to paste. – ehime – 2011-12-05T23:56:23.890

Ah, I didn't realize you weren't doing that. Just using alt+tab will speed things up quite a bit. – SaintWacko – 2011-12-06T16:15:21.397

Except the fact that I have 60 sites open at any given time. – verve – 2011-12-06T22:06:12.567

Do you have the sites open in different windows? – SaintWacko – 2011-12-06T22:12:15.047

No just several different websites. But, I assume using Alt+Tab won't make things faster if I have to cycle through 60 sites to get to the one I want. Is there a way to go from the site and then to the program I'm pasting to...? – verve – 2011-12-09T01:42:14.123

Just pressing alt + tab will take you to the last window you were on. so say you had an IE window with 60 tabs open in it. You would select the text you want, hit ctrl+c to copy, alt+tab to switch to your MSWord window, ctrl+v to paste, then alt+tab again to switch back to IE. – SaintWacko – 2011-12-09T09:24:10.020

@SaintWacko: that tip is useful for when I fail to figure out the script stuff. Ha. – verve – 2011-12-14T21:48:50.547

@verve also CTRL+TAB and SHIFT+CTRL+TAB to cycle between your 60 opened web site tabs. CTRL+F4 to close the current tab. – mtone – 2011-12-15T20:16:36.957

0

Similar to @user99572_is_fine's answer, I wrote an AutoHotkey script:

Download:

http://ahk.igalvez.net/CopyToDoc.exe

MD5 checksum: ccddf19d1eb440660b074682c8e8de6c


Source:

!v::

WinGet, target, ID, A
WinGet, targetProcess, ProcessName, A
MsgBox The target window [%targetProcess% %target%] has been set.
return

!c::

if target =
{
    MsgBox,
    (LTrim
        The target window has not been set.
        Press Alt+V to select a window.
    )
    Exit
}

IfWinNotExist, ahk_id %target%
{
    MsgBox,
    (LTrim
        The target window [%targetProcess% %target%] was not found.
        Press Alt+V to select a new window.
    )
    Exit
}

WinGet, original, ID, A
SendInput ^c
Sleep 500
WinActivate, ahk_id %target%
SendInput ^{End}
SendInput {Enter 2}
SendInput %clipboard%
WinActivate, ahk_id %original%
return

Instructions:

  1. Go to the window of the program you want to paste to.
  2. Press Alt+V to set that window as the target window.
  3. Go and select your desired text/data.
  4. Press Alt+C to copy the data. The script will then open up the target window, paste the data at the end of the file, and then return you back to where you were.

iglvzx

Posted 2011-12-05T21:25:57.313

Reputation: 21 611

So, I download the "Auto..." program and then somehow input what you wrote above into it? Any guide available? So, how does the script know which site I want to go back to after pasting? Can this script be used with any program, even Evernote? – verve – 2011-12-09T01:48:50.093

The script knows which window to go back to because it is programmed to remember these details. It should work with any program that has a window or shows up on your Taskbar. If you would like a quick guide, I can edit my answer to get you to where you need to be to run and use my script. :) – iglvzx – 2011-12-10T00:10:36.423

Yes please. Thank you. What happens if I have !0 programs open? Will it go back to the right program? – verve – 2011-12-13T21:11:34.650

@verve I have updated my script to check if the target window has been set or if it is no longer available. Also, I included a link to download the compiled script (.exe). Try it out, and let me know if I should make any changes. – iglvzx – 2011-12-14T19:24:48.747

Thanks. Let me see if I can figure the program out. – verve – 2011-12-14T21:47:01.423