2 Replies Latest reply: Jan 5, 2018 3:40 AM by Petter Skjolden RSS

    Mashup-Copy text from object

    Robert Mika

      Anyone experience such a challenge?

       

       

      Lets say if I want to copy any text from this Demo website:

       

      Market Size & Share

       

      Either thru native option , extension or script.

        • Re: Mashup-Copy text from object
          Erik Wetterberg

          Hi,

          The reason this does not work is some css:

          html, body {
            user-select: none;
          }
          

          This is included in Qlik Sense stylesheet, so generally copying text does not work in a Qlik Sense mashup. To copy you need to modify the css, which you can do in developer tools. Just set:

          user-select:text;
          

          on the element you want to copy, and it will work.

           

          Hope this helps

           

          Erik Wetterberg

          • Re: Mashup-Copy text from object
            Petter Skjolden

            I think a highly dynamic webpage/site of this sort demands more sophisticated software to do "web/data scraping". Something like this perhaps:

             

            Data Scraping Studio™ - Web Scraping & Data Extraction Software

             

            (Be aware of the legal consequences that might kick in if you pull data this way)

             

             

             

            Qlik Sense native webfile with this in a load script:

             

            LOAD
              *
            FROM
              LIB://INTRO(txt);
            

             

            Would return this:

             

            2018-01-05 09_37_08-Qlik Sense Desktop.png

             

            Which indicates that a headless-browser (or similar approach) needs to be used to retrieve all of the webpage content and into a final DOM that needs to be parsed.