From c92af8eedffe7128edda38f16011469b08340575 Mon Sep 17 00:00:00 2001 From: John McQuah Date: Sat, 11 Feb 2023 20:54:05 -0500 Subject: [PATCH] add watch scripts for PyPI projects --- python3-agate-dbf/.watch | 20 ++++++++++++++++++++ python3-agate-excel/.watch | 20 ++++++++++++++++++++ python3-agate-sql/.watch | 20 ++++++++++++++++++++ python3-agate/.watch | 20 ++++++++++++++++++++ python3-csvkit/.watch | 20 ++++++++++++++++++++ python3-dbfread/.watch | 20 ++++++++++++++++++++ python3-et_xmlfile/.watch | 20 ++++++++++++++++++++ python3-leather/.watch | 20 ++++++++++++++++++++ python3-olefile/.watch | 20 ++++++++++++++++++++ python3-openpyxl/.watch | 20 ++++++++++++++++++++ python3-pyicu/.watch | 20 ++++++++++++++++++++ python3-pytimeparse/.watch | 20 ++++++++++++++++++++ python3-slugify/.watch | 20 ++++++++++++++++++++ python3-sqlalchemy/.watch | 20 ++++++++++++++++++++ python3-xlrd/.watch | 20 ++++++++++++++++++++ 15 files changed, 300 insertions(+) create mode 100755 python3-agate-dbf/.watch create mode 100755 python3-agate-excel/.watch create mode 100755 python3-agate-sql/.watch create mode 100755 python3-agate/.watch create mode 100755 python3-csvkit/.watch create mode 100755 python3-dbfread/.watch create mode 100755 python3-et_xmlfile/.watch create mode 100755 python3-leather/.watch create mode 100755 python3-olefile/.watch create mode 100755 python3-openpyxl/.watch create mode 100755 python3-pyicu/.watch create mode 100755 python3-pytimeparse/.watch create mode 100755 python3-slugify/.watch create mode 100755 python3-sqlalchemy/.watch create mode 100755 python3-xlrd/.watch diff --git a/python3-agate-dbf/.watch b/python3-agate-dbf/.watch new file mode 100755 index 0000000..4475a4a --- /dev/null +++ b/python3-agate-dbf/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/agate-dbf/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-agate-excel/.watch b/python3-agate-excel/.watch new file mode 100755 index 0000000..bdc5ccc --- /dev/null +++ b/python3-agate-excel/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/agate-excel/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-agate-sql/.watch b/python3-agate-sql/.watch new file mode 100755 index 0000000..e990410 --- /dev/null +++ b/python3-agate-sql/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/agate-sql/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-agate/.watch b/python3-agate/.watch new file mode 100755 index 0000000..fb5ca77 --- /dev/null +++ b/python3-agate/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/agate/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-csvkit/.watch b/python3-csvkit/.watch new file mode 100755 index 0000000..ca193f7 --- /dev/null +++ b/python3-csvkit/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/csvkit/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-dbfread/.watch b/python3-dbfread/.watch new file mode 100755 index 0000000..49be6b8 --- /dev/null +++ b/python3-dbfread/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/dbfread/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-et_xmlfile/.watch b/python3-et_xmlfile/.watch new file mode 100755 index 0000000..6751cb9 --- /dev/null +++ b/python3-et_xmlfile/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/et_xmlfile/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-leather/.watch b/python3-leather/.watch new file mode 100755 index 0000000..760f4a9 --- /dev/null +++ b/python3-leather/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/leather/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-olefile/.watch b/python3-olefile/.watch new file mode 100755 index 0000000..14ce026 --- /dev/null +++ b/python3-olefile/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/olefile/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-openpyxl/.watch b/python3-openpyxl/.watch new file mode 100755 index 0000000..0751695 --- /dev/null +++ b/python3-openpyxl/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/openpyxl/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-pyicu/.watch b/python3-pyicu/.watch new file mode 100755 index 0000000..608453c --- /dev/null +++ b/python3-pyicu/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/pyicu/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-pytimeparse/.watch b/python3-pytimeparse/.watch new file mode 100755 index 0000000..2c44e4d --- /dev/null +++ b/python3-pytimeparse/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/pytimeparse/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-slugify/.watch b/python3-slugify/.watch new file mode 100755 index 0000000..66f197a --- /dev/null +++ b/python3-slugify/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/slugify/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-sqlalchemy/.watch b/python3-sqlalchemy/.watch new file mode 100755 index 0000000..eb13de4 --- /dev/null +++ b/python3-sqlalchemy/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/sqlalchemy/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1]) diff --git a/python3-xlrd/.watch b/python3-xlrd/.watch new file mode 100755 index 0000000..10f0b2a --- /dev/null +++ b/python3-xlrd/.watch @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +from subprocess import Popen,PIPE +from bs4 import BeautifulSoup as bs + +def get_html(url): + try: + curlpipe = Popen(["/usr/bin/curl","-s","-L",url],stdout=PIPE) + except: + print("- Request error: unable to retrieve {}".format(url)) + return None + curltup = curlpipe.communicate() + return curltup[0] + +page = get_html("https://pypi.org/project/xlrd/") +soup = bs(page, 'lxml') +headers = soup.body.find_all('h1') +for h in headers[:1]: + name_version = h.get_text().split() + print(name_version[-1])