Website scraping for CODE on page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 96ukssob
    So Fucking Banananananas
    • Mar 2003
    • 12991

    #1

    Website scraping for CODE on page

    I'm trying to find where some of these old tracking codes are on a site so they can be removed. Essentially, it's tracking code in a javascript snippet placed on various pages.

    Problem is there is over 800 pages. Most of the pages are just templates with content published, however some of them had hard coded text place in.

    So I was wondering where can I find a magic tool that I can plug in the URL or site map, it craws every page and looks for pages were certain text appears in the source code.

    Email: Clicky on Me
  • tokmansta
    Confirmed User
    • Jan 2013
    • 566

    #2
    If it is on your own server and it is running linux, you can do it with the find command

    find . | xargs grep 'code-you-want-to-find' -sl

    Comment

    • freecartoonporn
      Confirmed User
      • Jan 2012
      • 7683

      #3
      i guess the pages are static. and if those are on your server then you can use above linux command.

      or just download all on windows and use notepad++

      in notepad++
      you can find specific text in files in specific directories and subdirectoris too.
      and at the same time you can replace it too.
      SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

      Comment

      Working...