<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Py Script for html/comment/adsense mass replace in one directory' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Py Script for html/comment/adsense mass replace in one directory' posted on the 'Python' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 24 May 2012 00:17:21 -0700</pubDate>
    <lastBuildDate>Thu, 24 May 2012 00:17:21 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Py Script for html/comment/adsense mass replace in one directory</title>
      <link>http://www.programmersheaven.com/mb/python/417581/417581/py-script-for-htmlcommentadsense-mass-replace-in-one-directory/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have old big (~2000 pages ) html site with standard template.&lt;br /&gt;
&lt;br /&gt;
Idea is to make php cms to reduce hand coding in future.&lt;br /&gt;
&lt;br /&gt;
I want to strip all html tags, all comments in html and all Adsense code (just one Adsense type for all pages).&lt;br /&gt;
&lt;br /&gt;
Latter I will find my way to export important stripped data to MySql with Python or PHP.&lt;br /&gt;
&lt;br /&gt;
I am novice to Python/PHP, so I need script to:&lt;br /&gt;
&lt;br /&gt;
1. Walk for files in ONE directory&lt;br /&gt;
2. stript html/comments/adsense&lt;br /&gt;
3. Save that files under same name under same directory&lt;br /&gt;
&lt;br /&gt;
I found script for replacing in one page, but I need that "walk in dir + replace" option.&lt;br /&gt;
&lt;br /&gt;
Any ideas how  to start that in Python  ?&lt;br /&gt;
&lt;br /&gt;
Tnx for help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/417581/417581/py-script-for-htmlcommentadsense-mass-replace-in-one-directory/</guid>
      <pubDate>Wed, 30 Jun 2010 11:22:42 -0700</pubDate>
      <category>Python</category>
    </item>
  </channel>
</rss>
