File: notweets.py

package info (click to toggle)
planet-venus 0~git9de2109-4.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,884 kB
  • sloc: python: 4,393; xml: 871; makefile: 39; sed: 3; sh: 2
file content (6 lines) | stat: -rw-r--r-- 122 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
#remove all tweets
import sys

data = sys.stdin.read()
if data.find('<id>tag:twitter.com,') < 0:
  sys.stdout.write(data)