Script for wget downloading "Page Source"...

i need to download the web sources from different pages in the same web address
something like this
http://ZZZ.cl/books?pg=PP1&id=YIU1jlgPjr8C&output=html
http://ZZZ.cl/books?pg=PP400&id=YIU1jlgPjr8C&output=html
investigating i got some code
for i in $(seq 30 400); do wget http://ZZZ.cl/books?id=YIU1jlgPjr8C&pg= ... utput=html -O PS$i.txt;done
but it doesn't work
i need to get the web sources from page 1 to 400 in this style and location
/home/jfca283/PS1.txt
home/jfca283/PS400.txt
any help will help
thanks!!!

When you say "it doesn't work", you need to be more specific? What errors are you getting?
I copied and pasted your example, and replaced the 'wget' with an 'echo'. It seems you might have quoting problems. Try putting double quotes (") around the URL.
Last edited by fukawi2 (2009-06-15 05:21:01)

Similar Messages

  • Who stole the Oracle SQL Developer RPM for Linux Download Page!

    Guys,
    Who stole the Oracle SQL Developer RPM for Linux download page, everytime i try download the rpm all i get is the page can not be found Error 404!!!
    Not happy :-(

    Gents,
    Maybe yesterday's OTN download service problems are continuing today? Check this Community Feedback Forum announcement: [ Attention: Download Systems Issues|http://forums.oracle.com/forums/ann.jspa?annID=897|Doh!]
    Regards,
    John P.
    [http://only4left.jpiwowar.com|http://only4left.jpiwowar.com|Shameless plug for my low-volume blog]

  • Looking for old downloads page on apple

    Does anyone know what happened to the "downloads" page that used to have free screensavers, icons ect?

    It's changed somewhat Jennifer >   http://support.apple.com/downloads/

  • Script for extracting multiple pages

    Hi,
    I'm working with the default "extract pages" script: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.465.html
    I want to modify it to extract 2 pages at a time.  For example, say I start with a 6-page document.  I would like the script to extract pages 1,2 as one document, then pages 3,4 and 5,6.
    How would I modify the script to do this?
    Thanks!

    You could use a loop, but you don't need to for what you want. Do something like:
    // Extract first two pages to a new file
    extractPages({nStart: 0, nEnd: 1, cPath: "/F/temp/file1.pdf"});
    // Extract 3rd and 4th pages
    extractPages({nStart: 2, nEnd: 3, cPath: "/F/temp/file2.pdf"});
    // Extract fifth and sixth pages
    extractPages({nStart: 4, nEnd: 5, cPath: "/F/temp/file3.pdf"});
    Obviously, you need to change the file paths.

  • Script for switching master pages

    Would it be possible to write a script to do this: Replace one master page with another whenever a certain paragraph style appears? I'm looking for a quick way to replace my A Master (with running header and page number) with the None Master on pages where new chapters begin.
    Clark

    here you go (it also creates sections)
    var ProgressBar = function(/*str*/title){
         var w = new Window('palette', ' '+title, {x:0, y:0, width:340, height:60}),
              pb = w.add('progressbar', {x:20, y:12, width:300, height:12}, 0, 100),
              st = w.add('statictext', {x:10, y:36, width:320, height:20}, '');
         st.justify = 'center';
         w.center();
         this.reset = function(msg,maxValue)
              st.text = msg;
              pb.value = 0;
              pb.maxvalue = maxValue||0;
              pb.visible = !!maxValue;
              w.show();
         this.hit = function() {++pb.value;};
         this.hide = function() {w.hide();};
         this.close = function() {w.close();};
    function main(){
    var doc = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = [];
    var all_paragraph_styles = [];
    var list_of_masters_names=[];
    var list_of_masters=[];
    for (var i= 0; i<doc.masterSpreads.length;i++){
        list_of_masters_names.push(doc.masterSpreads[i].name);
        list_of_masters.push(doc.masterSpreads[i]);
    list_of_masters_names.push("undefined");
    doc.paragraphStyles.everyItem().name;
    for(var i = 0; i < doc.paragraphStyles.length; i++) {
               list_of_paragraph_styles.push(doc.paragraphStyles[i].name);
               all_paragraph_styles.push(doc.paragraphStyles[i]);
    for(var i = 0; i < doc.paragraphStyleGroups.length; i++) {
              for(b = 0; b < doc.paragraphStyleGroups[i].paragraphStyles.length; b++) {
                        list_of_paragraph_styles.push(doc.paragraphStyleGroups[i].name+"->"+doc.paragraphStyleGroups[i].paragraphStyles[b].name);
                        all_paragraph_styles.push(doc.paragraphStyleGroups[i].paragraphStyles[b]);
    // Make the dialog box for selecting the paragraph styles
    var the_dialog = app.dialogs.add({name:"Section start at paragraph style:"});
    with(the_dialog.dialogColumns.add()){
              with(dialogRows.add()){
                        staticTexts.add({staticLabel:"Find:"});
              with(borderPanels.add()){
                        var find_first_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
                        staticTexts.add({staticLabel:"Apply Master:"});
              with(borderPanels.add()){
                        var change_master = dropdowns.add({stringList:list_of_masters_names, selectedIndex:0});
                        staticTexts.add({staticLabel:"Select \"undefined\" not to change"});
    the_dialog.show();
    // Define paragraph styles
    var myParagraph = all_paragraph_styles[find_first_paragraph.selectedIndex];
    var myMaster=(list_of_masters_names[change_master.selectedIndex]!="undefined")?list_of_masters[change_master.selectedIndex]:null;
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = myParagraph;
    var myFound=doc.findGrep();
    var i=myFound.length;
    var pBar = new ProgressBar("Sectioning");
         pBar.reset("Rabdare...", i);
    while (i--)
            pBar.hit();
            if (myFound[i].parentTextFrames[0].parent.constructor.name=="Character"){
                var myPage=myFound[i].parentTextFrames[0].parent.parentTextFrames[0].parentPage;}
            else{
         var myPage=myFound[i].parentTextFrames[0].parentPage;}
         var mySection;
         if (myPage.appliedSection.pageStart==myPage){mySection=myPage.appliedSection;}
         else{
         doc.sections.add(myPage,{pageNumberStart:1})};
        // mySection.pageStart=myPage;
         //mySection.pageNumberStart=1;
         if (myMaster) {myPage.appliedMaster=myMaster};
    alert("Acum e gata!!");
    app.doScript('main()',undefined,undefined,UndoModes.entireScript,'AutoSections');
    //main();

  • Script for printing changed pages only

    Does anyone know of a script that will allow the printing of only those pages that have had changes made to them since a previous save? I'm a typesetter doing work only on books and journals and sometimes it's a bit tedious to keep track of the individual pages one works on. thanks,

    Ok,
    Here is a raw code. All you need to do is edit the script to specify the printer preset you want to use. I don't have a printer my self to debug but I think it should work.
    Here is the idml to grab the object styles. Don't forget to apply on objects located onto the pasteboard. The script look for these objects and grab the page name next to them to finally print these pages.
    Hope it helps,
    Loic
    function main(){
              var doc,
              changedArray = [],
              changedStyle,
              unchangedStyle,
              i=0,
              max=0,
              found = [],
              pagerange = [];
              obj,
              vb,
              leftPage,
              leftPageBounds,
              rightPage,
              rightPageBounds,
              pagerange = "";
              if(!app.documents.length){ return; }
              var doc = app.activeDocument;
              changedStyle = doc.objectStyles.itemByName("changed");
              unchangedStyle = doc.objectStyles.itemByName("unchanged");
              if(!changedStyle.isValid ||  !changedStyle.isValid){
                        alert("Problem with object styles. Script requires both \"changed\" and \"unchanged\" styles.");
                        return;
              app.findObjectPreferences.appliedObjectStyles = changedStyle;
              found = doc.findObject();
              max = found.length;
              for(i=0; i<max; i++){
                        obj = found[i];
                        vb = obj.visibleBounds;
                        leftPage = obj.parent.pages[0];
                        leftPageBounds = leftPage.bounds;
                        rightPage = obj.parent.pages[-1];
                        rightPageBounds = rightPage.bounds;
                        if(vb[1]>rightPageBounds[1]){
                                  pagerange.push(rightPage.name);
                        else if(vb[1]<leftPageBounds[1]){
                                  pagerange.push(leftPage.name);
              app.printPreferences.activePrinterPreset = app.printerPresets.itemByName("my printer preset");
              var oldPrintPrefs = doc.printPreferences.pageRange;
              doc.printPreferences.pageRange = pagerange.join(",");
              alert("Gone printing");
              app.print();
              doc.printPreferences.pageRange = oldPrintPrefs;
    main();

  • Flash for firefox download page not working

    The download link for the adobe flash player plugin for firefox does not appear to be working. I'm getting a page load error when clicking on the download link on the following URL: http://get.adobe.com/flashplayer/
    I've tried revisiting the page over several days this past week with no change. What am I missing here?

    What is your operating system?  If Windows, try downloading the offline installer from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

  • I have a problem with a php script for loading dynamic pages using flash as menu bar, but the urls in the flash is not processed by the php script only in firefox

    '''php script:'''
    <?php
    $page = $_GET['page'];
    if ($page)
    include ("inc/".$page.".php");
    else
    include ("inc/home.php");
    ?>
    '''Action script 2.0 in flash:'''
    on(release){
    getURL("index.php?page=new");
    }

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Script for adding a page

    Is there a way to have a whole page invisible from the actual form but when a certain word is selected from a drop down list the page then appears?? Thanks.

    I figured out how to do this one...pretty easy actually.
    on exit use addInstance and removeInstance

  • Allowing server side script for an explicit page

    Works with SP2010, but not with SP2013:
    <PageParserPath VirtualPath="/_catalogs/masterpage/InternalSystems.master" CompilationMode="Always" AllowServerSideScript="true" />
    I don't want to use the "VirtualPath=/*"-workaround.
    Any solutions ?

    <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
    As i mentioned above: Don't want do use "/*" as virtual path. As soon as i change this to a particular site (e.g. "/pages/*"), it does not work. Always get an exception.

  • Where is the download page for Quicktime for Windows?

    Can someone give me the URL for the Quicktime for Windows download page on Apple? There used to be a link on the Quicktime for Mac page but since the site redesign I can't find it. Thanks

    omgosh ! soooo frustrating everytime i download windows media player download complete box comes up & then i click on open and it says this file is not a movie ... so then i just clicked on the download after reading your suggestions and when done downloading my iphoto came up and it said this file cannot be supported .. am i supposed to have sum kind of software for apple ?? what am I doing wrong ?? I know that i have a mac os X ..omgosh sooo much stuff to learn on this thing ! i never know which way to go :o(

  • Oracle 9i for Solaris download

    For the past few days I have been trying to download Oracle 9i database for Solaris. I am having two problems
    1.) When I go to http://otn.oracle.com/software/content.html and select "9i Database", all I see is "<SCRIPT LANGUAGE="javascri".
    2.) I am able to get to the Oracle 9i download page by connecting to http://otn.oracle.com/software/products/ (instead of http://otn.oracle.com/software/products/oracle9i/software_index.htm ) but once I get to the 9i for Solaris download page the links act like they have invalid URL's.
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename : 901solaris_disk*.cpio.gz
    - Date/Time Mar 28 - 30 2002
    - Browser + Version : IE 5.00.3315.1000
    - O/S + Version : Windows 2000
    - Error Msg : "Can not find server or DNS error

    ramkumar swarnkar wrote:
    Can anybody let me know link to download oracle 9i software for solaris OSThe normal places to check for downloads are at http://download.oracle.com and http://edelivery.oracle.com
    If the software you look for is not at either of those places it is probably because they are outsiide 'normal' support status. In that case you need to contact either Oracle Support (if you have a valid CSI) or Oracle Sales (to get a CSI number) to get the software.

  • Cold Backup Script for windows

    Hi,
    I have the following script for windows
    set pages 0 lines 500;
    set heading off echo off feedback off verify off pagesize 0;
    select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP\ORADATA\' from v$datafile
    union all
    select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP' from v$controlfile
    union all
    select 'copy ' || member ||' c:\BACKUP\COLD_BACKUP' from v$logfile
    union all
    select 'copy ' || name || ' c:\BACKUP\COLD_BACKUP' from v$tempfile;
    exit;
    In the above script I have given COLD_BACKUP directory for Backup....But what i want is Dynamically it should create the Directory with timestamp in COLD_BACKUP Directory and copy the files to that directory..
    for example
    script should create like this
    c:\BACKUP\COLD_BACKUP\ORCL_11112007
    Like that..it should create the ORCL_11112007 directory and copy the files....
    how can i acheive this...I know we can do it in UNIX..
    But in windows..how we can acheive this...please help me

    You can try to adapt the following SQL*Plus script to create a directory:
    set echo on
    alter session set nls_date_format = 'DDMMYYYY';
    var dd varchar2(10);
    begin
    :dd := trunc(sysdate);
    end;
    set echo off
    spool mkd.sql
    set heading off
    select 'host mkdir ' || :dd from dual;
    spool off
    set echo on
    @mkd.sqlOutput is:
    dev001> alter session set nls_date_format = 'DDMMYYYY';
    Session altered.
    dev001> var dd varchar2(10);
    dev001>
    dev001> begin
      2  :dd := trunc(sysdate);
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    dev001>
    dev001> set echo off
    host mkdir 08112007
    dev001> @mkd.sql
    dev001>
    dev001> host mkdir 08112007
    dev001>
    dev001>
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Where is the iTunes 10.5 beta for Windows download link?

    iOS Dev Centre only shows mac link.  My iPad2 is now a brick - downloaded iTunes 10.5 beta and installed iOS5 on iPad2 via my work mac but none of my music etc is on that one so I need to restore from my home PC (Windows) can't because it needs iTunes 10.5 beta.  Please tell me I am looking in the wrong place for the Windows link...

    OK found it if anyone else was thrown by this...
    The Windows download link for iTunes 10.5 beta is not as you would expect listed next to the iTunes 10.5 beta download section it's it's on the iCloud beta for Developers download page.

  • Heads up to QT/iTfW troubleshooters: standalone download page changes

    to be precise, there isn't a separate standalone download page any more. the QT for Windows download page comes now with two options: an itunes/QT installer bundle, and the QT standalone directly below it:
    http://www.apple.com/quicktime/download/win.html
    all my links (and presumably all your links) to the old standalone page have been redirected to the new page.
    since the QT/iTfW bundle is the default download setting, we're going to have (for a while) folks reading through the old posts/threads and downloading the bundle by mistake. be on the lookout for reports of -3s coming from a supposedly standalone QT install ... it'll probably be being caused by the confusion due to our old links.

    (marking this one as answered just to get it out of my unresolved questions ... no new news here.)

Maybe you are looking for

  • Can't drag & drop files into folders

    So heart-attack was just adverted, however I need to figure out what's going on. My work comp just got upgraded to Mountain Lion along with a few coworkers (who for whatever reason aren't experiencing this same issue). Basically, if I have a folder (

  • LabView, TestStand - Associate Test Engineers - Salt Lake City, UT

    Associate Engineer, Software Test -  Requisition ID  004700 USA-Utah-Salt Lake City    Description We are seeking a Software Engineer to create automated tests for communications and networking hardware in a challenging, fast-paced environment. The A

  • Remove prefix when creating menu for user in pfcg

    Can I change the way pfcg creates a use menu? It now starts with the rolename and then the logical SAP menu path. When I have different roles with the same path the "collapse menu" option does not work as the two start with a diffent role name. Can I

  • IMAP migration HostGator to Exchange online

    The email migration tutorial provided by Microsoft provides detailed instructions for using a mail administrator account in the CSV upload file to avoid having to reset user passwords during an email migration, however it does not work when migrating

  • Why won't iPhoto won't open?

    iPhoto won't open. The rainbow circle just goes round and the computer sounds like it's about to take off. Can only close with ctrl/option/start button.