Programming :: Automate Copy And Paste Of Files From The Internet?
Jul 28, 2010
Here is what I currently do and want to automate:
1) I manually enter a particular web site address in the browser.
2) When the page displays on my machine, it shows a number of links I need to visit, one after the other.
3) Each of these links display another page (file) from which I "cut and paste" information. I do this by highlighting manually the wanted info, click "copy" then select an open file on my computer, select "undo" if necessary to remove any previous content, click "paste" and then "save".
4) I then call a Yabasic program that reads the saved file and trims unwanted info.
5) At the completion of the Yabasic program, I click the web page tag, click the "back" button to return to the first page (since I am in the second) and click the next link in this first page till all links have been visited.
6) visit the next known web site and repeat 1 to 5
In an automated program, what I need to do is:
1) Visit the known page of the web site showing the links
2) save the page showing the links (the first page)
3) make a list of those links
4) visit each link one after the other and save its page from which I will programmatically (Yabasic) select info.
5) repeat 1 to 4
I can do this in "Yabasic" (which can issue Linux commands) or PHP although I do not know PHP much.the purpose of this is to associate towns and cities of the world with their respective political/geographical divisions and their respective time zone. This has to be done often because that data changes regularly.
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
I just installed Ubuntu 10.10 on my laptop. Now I am organising the structure of maps and folders, etc. My struggle is that I seem to have no permission to copy, paste and move files to another place then the home folder and the desktop.I am a total newby in Ubuntu and coming from a Windows operating system, so please give me some assist. I guess it must be very simple, but I don't have a clue at the moment.
I just installed Fedora11 with the KDE desktop and completed a yum update. Every time i try to copy and paste files and even delete files from a file manager or my desktop, I get this error:Quote:Could not start process Unable to create io-slave:klauncher said: Error loading 'kio_trash'.or thisQuote:Could not start process Unable to create io-slave:klauncher said: Error loading 'kio_file'.orQuote:Could not start process Unable to create io-slave:klauncher said: Error loading 'kio_desktop'.Current KDE version is 4.2.2
I've never really taken advantage of Linux being open source before but I was wondering how the copy and paste functions look like. So far I have found out that they are handled by the X Window System (by reading this thread).But I don't seem to get much further than that.
just want to download the 60mb-ish pack of family photos from my external usb hard drive. I've gone through a multitude of wikis and help threads and can't seem to figure out how to copy and paste those files to my laptop The usb hd works perfectly as I just was using it about 1 hour ago when I still had vista on this laptop. Here's a copy of my fstab as that seems the file all the wiki's:
Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files?
I found this from [URL]. I'm not familiar with this command shift-8-y-y. I follow the vimtutor and use virtual mode. I tried this sequence and was unsuccessful.
And, I read this about registers. I found a mention of using double_quote-p to 'put' or paste the register, but this does not work in a different file. The second file reported the register empty.
Alternatively, I read in the VIM docs, it is possible to open multiple files under split screens. This may be a course to a solution. The need I often encounter has me navigating in a different bash window to find a file, then wishing to copy between the two. Whereas, I imagine, a split VIM window useful for files in the same directory.
My usb stick will not allow me to easily copy and paste files on to it, or delete them once I no longer want them on the drive. Its owner is root. How can I change the owner? At the moment it is loading as a stylesheet in media/usb0.
The file is transferring at a very low speed. 74mb in 4 minutes
I suspect I will do better if I set up the drive via fstab. What entry should I put in fstab for a USB stick drive?
I have this treacherous program in C which uses external static libraries (extern etc), and want to do a coverage test of it. The libraries are written in fortran. I compile like this Code: gcc -fprofile-arcs -ftest-coverage -o main main.c library.o I run my nice program like that
Code: ./main Then I do the magic stuff Code: gcov main.c library.f
Ok 98% of the lines were used in main.c, and I get a file with line counts and all that. Great! But, I need to know the coverage in my library too! It says 0.0% and that's impossible. So what can I do? I can't run it like an executable because it's a library.
And why is the terminal not accepting my copy paste? I copy some lines from my IDE, then I want to paste it into the terminal (with ctrl-v of course, not some crazy local application non-standard counter-intuitive key combo made just to cause agony among honest users!), and that could've been the only problem here, but it isn't. I can't even paste with that right click menu. So, if I was crazy before, I went nuts after that. My great "solution" was to paste it into the firefox URL field (not the search field ) and then copy that and paste it into the terminal. Is that common practice for you all while dealing with that unburied DOS-window?
I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.
Making a script. This is for my linux class. Basically when you run it, whatever directory it is in, zips everything, backs it up to the folder its in, and also makes a copy of it in the root directory. Here is what I have, but its not running right.
Code: #!/bin/bash echo echo echo "Automate Backups" echo -n "Would you like to backup? Y or N:" read answer1 if [$answer1 = "y"] then if [$USER = "root"] then echo tar -cPvzf "$USER"_backup.tar.gz.`date +%F` /"$USER"/* cp "$USER"_backup.tar.gz.`date +%F` /backups/"$USER"_backup.tar.gz.`date +%F` echo "Successful Backup" fi echo tar -cPvzf "$USER"_backup.tar.gz.`date +%F` ~/"$USER"/* cp "root"_backup.tar.gz.`date +%F` /backups/"$root"_backup.tar.gz.`date +%F` echo "Successful Backup"
Anyone know why, my copy & paste in the terminal doesn't work....it's there, just not highlighted, I need to install Sun Java and can copy the command lines from the forum I just can't paste them into the terminal. Also is there a way to check that my Ubuntu download to my USB stick is error free?
The usual vim yank and paste works only in the same window (but does work across files and close/save commands). Is it possible to make it work across terminals (yank from window in one terminal and paste in another) and if so, how?
I can't Copy, paste, select all, or find with my keyboard... pretty much all the commands that involve the Control key don't work. in firefox... the edit> copy, paste , etc commands are actually grayed out too.
I'm running Lucid, and whenever I run a program in gnome-terminal that captures the mouse (dvtm, elinks, mc) I cannot highlight any text, which prevents me from copying any text from the terminal.
I can't copy & paste text from an Evolution email message without first pasting the text into an editor like gedit or a word processor and recopying it a second time... Then it works fine... I thought the problem may have been a Delphi forum specific problem, but it also does the same thing on this board...
I running 10.04 with the default Evolution mail program.
BTW on Delphi I can turn off the wysiwyg editor and paste as "source" and it works just fine without the paste and recopy step...
I am experiencing an issue where the first time I copy and paste it works fine. But after that it just pastes garble. I've installed glipper and if I clear the clipboard after every copy/paste its fine.
At first I upgraded from 10.04 and this came up so I thought I would just do a clean install of 10.10. It was still happening.
I'm trying to copy paste about 5k lines from a vi text file onto a website but obviously manually selecting the text from my screen and pasting it one page at a time is time consuming so I was wondering if there was an easier way to do this?
I am trying to Copy and Paste a link on Fedora 8 (I am using Window Vista) and I can't find a way to do this.. I have tried "Right and Left" click at the same time... I have tried "Shift-Ctrl-C and Shift-Ctrl-V.. plus all the others with no results.. I am working from root on a Console...
I'm using SSH (with -X specified) from a Ubuntu box to a RHEL4 box and running GVim. It opens as expected in my local X, but the copy and paste via select doesn't work. I cannot select text in GVim and paste in a local window, nor can I select text from a local window and paste in GVim. This works, however, when I SSH (with -X specified) to a different RHEL4 box. Is there something I need to install on the remote machine? I am running Parcellite 0.9.2 on the local box, but closing it doesn't make the problem go away, and it is not interfering with the other box.
I'm using a work computer so i don't have a root access. I've tried "+y, "*y, set clipboard=unnamed. It looks like my vim doesn't support +clipboard (version 7.0).I'm using Linux Centos 5 so fakeclips doesn't actually help (i think)It's a pain to type stuff manually from firefox to vim or other apps and vice versa.
In Ubuntu, why does copy and past not work for most applications. I can't tell you how many times I have copied some text and went to a new application and Past is greyed out. For example, in Firefox I can highlight some text like "Belmont Diner", then right click and choose "Copy". Then go up to the Google search bar and right click and Paste is not an option. I have tried doing this using Crtl C to copy and Ctrl V to paste. It does not work...most of the time. Every once in a while it will but most of the time it does not. I can repeat the action to make sure I really copied the data and still no luck. Sometimes it works but many times it does not.
Whenever I try to copy and paste something from Opera to Thunderbird (or FireFox) the copied text does not appear when I select paste. (or control V) My work around is to place the copied text into a empty document, re-highlight, copy and then the paste into Thunderbird will work.
Opera Version: 10.61 Build 6430 Thunderbird 3.0.6 System x86_64, 2.6.32-24-generic