Ubuntu :: WGET - Download HTML Page In One Directory And Other Elements In A Subdirectory?
Mar 12, 2010
i'm using wget with this parameters:
wget -E -H -k -K -p -nH -nd -Pfolder http:\www.mysite.com
using this parameters the main html page and all the images will download in the same folder. Instead i would like to have the html page in a folder and all the images,css ecc in a subdirectory for example i want to have:
c:foldermain.html
c:foldersubfolderimage.jpg
c:foldersubfolderimage2.jpg
c:foldersubfoldercss.css
It's the same that mozilla firefox do when i save a html page on local machine ("save page as" on file menu) Which parameters do i have to use?
View 1 Replies
ADVERTISEMENT
Jul 6, 2011
What is the Wget command to perform the following:
download only html from the url and save it in a directory
other file extentions like.doc,.xls etc should be excluded automatically
View 4 Replies
View Related
Dec 21, 2010
can we use recursive download of wget to download all the wallpapers on a web page?
View 5 Replies
View Related
Jul 27, 2010
I am trying to download site using wget :$sudo wget -r -Nc -mk [URL] but it is downloading the contents of all directories and subdirectories under the domain :[URL] (ignoring the 'codejam' directory) so it is downloading from links like : [URL]... i want to restrict the download so that wget command should download only the things under 'codejam' directory
View 9 Replies
View Related
Jul 2, 2010
I'm trying to download all the data under this directory, using wget: [URL] I would like to achieve this using wget, and from what I've read it should be possible using the --recursive flag. Unfortunately, I've had no luck so far. The only files that get downloaded are robots.txt and index.html (which doesn't actually exist on the server), but wget does not follow any of the links on the directory list. The code I've been using is: Code: wget -r *ttp://gd2.mlb.***/components/game/mlb/year_2010/
View 4 Replies
View Related
Oct 10, 2010
I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.
What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.
Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter.
View 1 Replies
View Related
Mar 9, 2010
I used wget -r to get all the web pages that were linked from index.html. The pages listed in index.html are all chapters. After using wget -r, all the chapters are now in the same folder on my local hard drive. Is there a way to build the chapters in their proper order into a "long"/"full" web page, rather than simply having each chapter as a link/next link on a previous page?
View 9 Replies
View Related
Sep 18, 2010
For a search box on my site, I want a textbox, which will let the user input the term to be searched for, and next to it I want a drop down list that'll have, for example, "Fruit" and "Vegetables" as categories to be searched within. How do I do the HTML for this? (so that the arguments to my search.php script will be eg. "search.php?text=apples&type=fruit" ? )
View 3 Replies
View Related
Mar 29, 2010
Is there some way to access HTML elements via javascript through some internal ID?
For instance, given a form like:
Code:
<form name="myForm">
<input type="text" />
<input type="text" />
[Code]....
I think I've seen some way to do this before but I'm not certain
View 4 Replies
View Related
Jun 8, 2009
I have apache httpd server on my Fedora 10I got 2 problems:First : I copied the web page files to its Document Root <var/www/html> & Disabled the default web page. But when I visit http:/localhost ,it shows up the list of files in <var/www/html> as if a ftp server browsed in web page. So how can I set http://localhost load my default web page index.html ?Second :I want to set up a web server on Internet through my router . I applied for DDNS account & input it into router correctly . I set virtual host in server to redirect any access from port 80 to 192.168.1.2:80 in LAN . Just for in case , I also download and running the DDNS software & installed it on PC 192.168.1.2 in LAN . My DDNS provider is oray.cn . It's a Chinese server provider . I don't think there is anything wrong with oray.cn . But if you need its information just visit oray.cn (Google can translate it for you). So I want to know did I miss something to set up a web server in this kind of situation
View 2 Replies
View Related
May 16, 2010
I am trying to learn how to include common elements on every page. At first I made the mistake of calling it ssi but I do not think that is correct in php5. I downloaded phpb3 to look at and they are not doing it that way. they do it like this.
Code...
Problem is I can not find any articles that explain it. I even looked at the php manual and did not find it. Could someone explain this or point me in the right direction.
View 1 Replies
View Related
Aug 25, 2010
How Can I Copy Everything in Current Directory to Subdirectory in linux console
View 6 Replies
View Related
Sep 16, 2011
At the moment I'm doing:
for i in mdx/[0-9][0-9].png; do cp $i ../../d_s_c/images/mdx ; done
But as well as the directory mdx, I also have other directories called ntt, etc.
How can I say 'For everything in a subdirectory, copy it across to the same subdirectory over at at ../../d_s_c/images'?
View 1 Replies
View Related
Jul 5, 2011
I like to use wget to click a javascript button on this page
page:
[URL]
button:
Update (Add to Queue)
bin trying
Code:
wget --post-data="updbutton" [URL]
But it aint working. I am not WinslowLee420 he is just the top player on the leaderboard.
View 3 Replies
View Related
Feb 10, 2009
My friend has a website whereby once you have logged in on one page, you are redirected to another page, with a url similar to:
[URL]
the random string changes each time you log in, however the login page has a static url What i was attempting to do is run a script to get some data from the members page (after uve logged in) - however ive been having some trouble in how to do this, as the variable url with the random string will become invalid after a certain time, and i did not want to consantly change it.
While reading through some documentation i read that wget should be able to login to a form login website however ive had no luck, the command i was attempting to use was:
wget --user USERNAME -password PASSWORD [URL]
similarly i also tried
wget --post-data "username=USERNAME&password=PASSWORD" [URL]
and even both combined. However neither has worked as the html dl'd is simply the login page website. I cannot post a direct link to the website as it is private, however ive looked at the source coding and ive extracted (what i think) is the relevant bit, which is:
Code:
<form action="/cgi-bin/sblogin/login.cgi" method="post" name="login" id="login"><br /><br />
<div class="user_text"><span class="text3">USERNAME:</span></div><div class="user_box"><input type="text" class="text" name="uname"></div>
[code].....
View 1 Replies
View Related
May 22, 2010
I have an HTML page that I want to run some PHP code. I found several "How tos" about this but I can't get it to work. The code is very simple:
Code:
cat test.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
[code]...
View 14 Replies
View Related
Mar 15, 2010
First I go to the following URL to download the latest version of VLC Player, which I greatly prefer to Totem or any other standard Linux video/audio player: http://www.fileguru.com/Movie-Player/download. After I click on the "Download" link, a new window appears which asks me if I want to 1) Open with Archive Manager (default) or 2) Save File. There is a drop down arrow next to the first choice which only gives "Other..." as the only other choice. Well, if I choose the first option, the download appears as an .exe file in the "Downloads" window.
A window with "Download Error" in its Title Bar appears with the following message in it: "/tmp/VLC_Player_Setup-3.exe could not be opened, because the associated helper application does not exist. Change the association in your preferences." I don't even know yet how to even open up an .exe file in Linux, despite repeated research.
View 1 Replies
View Related
Oct 16, 2010
how exactly would you open a port and point it to an html page, like port 80 does by default?
Example: Port 2985 -> ./var/www/login/index.php
View 5 Replies
View Related
Aug 14, 2010
How can I create a Run Configuration for html page with no http server (e.g. Tomcat)? I want to debug javascript so I need not a server.
View 2 Replies
View Related
Jan 2, 2010
I have created a website for a guy with an entrance page. I have written the entire site in PHP excluding the entrance page which is in HTML. The entrance page is literally just an image they drew up and I placed a link in. The problem is that the image is HUGE. I would like to know if there is any way (use JS, PHP, CSS, or whatever) to make this image either auto fit the screen/window or at least auto fit in a range of resolutions? Because if you have a small monitor then you wouldn't even see the actual graphic, just the border.
View 10 Replies
View Related
Feb 21, 2010
I'm trying to download a set of files with wget, and I only want the files and paths "downwards" from a URL, that is, no other files or paths. Here is the comand I have been using
Code:
wget -r -np --directory-prefix=Publisher http://xuups.googlecode.com/svn/trunk/modules/publisher There is a local path called 'Publisher'. The wget works okay, downloads all the files I need into the /Publisher path, and then it starts loading files from other paths. If you see [URL]..svn/trunk/modules/publisher , I only want those files, plus the paths and files beneath that URL.
View 2 Replies
View Related
Jan 11, 2010
Ubuntu 8.0.4,GnomeDesktop with firefox (we are going to use) Epson Thermal printer(M-T500 Thermal Printer) [URL]... without linux driver,provide serial port ctrl. I get the command manual(pfd).I can test the command by run minicom however. I want to print the Web page (.html) provide by our web servers.Those pages have a js-button(javascript) each with the function that the firefox/or (custom) app demo is called to print the line/table/div/etc (not the whole page,like the receipt) after the js-button is pressed. There is a window showing the print-progress info will be better when it is printting. I just try to find the best way to do this: I got ghostscript after search by google but it is just used for pfd print or something. So How can I just implment this?
View 1 Replies
View Related
Jun 15, 2010
im making client(browser) and proxy server application in linux and using c/c++....can any one guide me that how proxy server get page from internet and send it to the client (browser)?and how that page will be displayed on my browser??meanz that will be only text...if text then how i can display graphical page....
View 3 Replies
View Related
Jan 17, 2010
I have the following problem. I have my script /usr/lib/cgi-bin/login.cgiand two page in /var/www, home.html and welcome.html.When I log in /var/www/home.html with email and password, then login.cgi to extract exact user informations from mysql. Now I'd like start welcome.html page from login.cgi and passing user informations trought parameters
View 4 Replies
View Related
May 20, 2010
Today, the power was suddenly cut off in my house, then my home Ubuntu Server restarted after the power on, but when I use my laptop to view my wesite, the index.html suddenly became blank page, I did clear the firefox cache, doesn't work, still blank, and I changed browser, to seamonkey, the index.html still was blank, so, I am sure that the problem is coused by the server, and then, I put the index.html file to a subdirectory, which under the /var/www/home/index.html, and then I put the address < [url] > ,then,I can view my website the main page index.html.
View 2 Replies
View Related
May 6, 2011
if there is a mirror I could use to download a recent version of Ubuntu (e.g. natty). I'd like to use wget but can't find an address for a mirror.
View 3 Replies
View Related
Jul 28, 2011
I want to try to download an image of the earth with wget located at [URL] which is refreshed every 3 hours and set is as a wallpaper (for whom is interested details here). Wen I fetch the file with Code: wget -r -N [URL] the jpeg is only 37 bytes and of course too small and not readable.
View 5 Replies
View Related
Mar 11, 2010
I wish to execute a shell script once a button on my html page is clicked.
View 7 Replies
View Related
Mar 29, 2010
Can anyone please help me write a perl script to view normal html page.
View 5 Replies
View Related
Oct 6, 2010
I'm doing this wget script called wget-images, which should download images from a website. It looks like this now:
wget -e robots=off -r -l1 --no-parent -A.jpg
The thing is, in the terminal when i put ./wget-images www.randomwebsite.com, it says
wget: missing URL
I know it works if I put url in the text file and then run it, but how can I make it work without adding any urls into the text file? I want to put link in the command line and make it understand that I want pictures of that certain link that I just wrote as a parameter.
View 1 Replies
View Related