GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Website scraping for CODE on page (https://gfy.com/showthread.php?t=1124866)

96ukssob 10-30-2013 04:26 PM

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.

:helpme

tokmansta 10-30-2013 05:45 PM

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

freecartoonporn 10-30-2013 07:25 PM

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.


All times are GMT -7. The time now is 05:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123