[Baypiggies] Python script to modify a large # of HTML files?

Shannon -jj Behrens jjinux at gmail.com
Tue Apr 10 15:47:30 EDT 2018


Consider integrating Google Tag Manager.

On Fri, Apr 6, 2018 at 7:48 PM Bill Deegan <bill at baddogconsulting.com>
wrote:

> To clarify I'm not asking how to do it.  I understand how to do it.
>
> I'm being lazy (a trait of any good programmer) and asking if someone
> already has created such a script.
> It seemed like inserting the google analytics JavaScript blurb in a tree
> full of HTML files might be something others had done in the past..
>
> Thanks,
> Bill
>
> On Fri, Apr 6, 2018 at 9:47 PM, Sean Perry <shaleh at speakeasy.net> wrote:
>
>> Make it work for one. The BeautifulSoup package is nice for HTML.
>>
>> Then use find on Linux or OSX to apply it to all of the files.
>>
>>
>>
>> On April 6, 2018 1:54:57 PM PDT, Bill Deegan <bill at baddogconsulting.com>
>> wrote:
>>>
>>> Greetings,
>>>
>>> I'm working a website which has html docs for many old versions of the
>>> tool.
>>> Ideally I'd add the google analytics snippet to them all.
>>>
>>> Anyone have a nice python script to do something like this?
>>>
>>> Thanks,
>>> Bill
>>>
>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>> _______________________________________________
>> Baypiggies mailing list
>> Baypiggies at python.org
>> To change your subscription options or unsubscribe:
>> https://mail.python.org/mailman/listinfo/baypiggies
>>
>>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20180410/19d1db4f/attachment.html>


More information about the Baypiggies mailing list