From 2ddd4adbe617432e46d5a86ff85c68d07f9ee349 Mon Sep 17 00:00:00 2001 From: Sam Courtemanche Date: Sat, 28 Nov 2020 13:23:00 +0100 Subject: [PATCH 1/3] misc: update package name in README's pip command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25c0591..e14963a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Currently the gathered news are the following: The package can be installed with: ``` -pip install smlep_news +pip install smlep-news ``` Architecture From b6b20beb9b77b10307e99dce834deef529a817d5 Mon Sep 17 00:00:00 2001 From: Sam Courtemanche Date: Sat, 28 Nov 2020 20:45:08 +0100 Subject: [PATCH 2/3] ph: order by votes --- smlep_news/product_hunt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smlep_news/product_hunt/__init__.py b/smlep_news/product_hunt/__init__.py index 9c35e0b..75fa0ff 100644 --- a/smlep_news/product_hunt/__init__.py +++ b/smlep_news/product_hunt/__init__.py @@ -31,7 +31,7 @@ def get_top_products(client_id, client_secret, from_date, count=10): } # .format() does not handles well {} in strings, falling back to %s body = { - "query": 'query { posts( first: %s postedAfter: "%s" ) { edges { node { id name description tagline url votesCount } } } } ' + "query": 'query { posts( first: %s postedAfter: "%s" order: VOTES) { edges { node { id name description tagline url votesCount } } } } ' % (count, from_date.strftime("%Y-%m-%dT%H:%M:%S.%f%z")) } From f6ac051d7f2451f230d973ef7d0fe20b1a1fa6aa Mon Sep 17 00:00:00 2001 From: Sam Courtemanche Date: Sat, 28 Nov 2020 21:41:25 +0100 Subject: [PATCH 3/3] version: bump to 0.0.5 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c3c9e55..6212caf 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="smlep_news", - version="0.0.4", + version="0.0.5", description="Custom news scrapper", long_description=long_description, long_description_content_type="text/markdown",