Skip to content
Snippets Groups Projects
Commit dafaa11d authored by Luca Morandini's avatar Luca Morandini
Browse files

- Added parameter to suppress SSL certificate warning when connecting to ElasticSearch

- used pip to install Mastodon.py
parent 540be951
Branches
No related tags found
No related merge requests found
......@@ -327,3 +327,11 @@ cython_debug/
/installation/config.grp1
/installation/config.grp70
/installation/config.test
/installation/config.grp7
/installation/config.grp17
/fission/functions/get-income/
/fission/functions/get-income.zip
/installation/config.grp31
/installation/config.grp13
/installation/config.grp51
/installation/config.grp54
......@@ -675,12 +675,10 @@ statuses in ElasticSearch, with the `lastid` variable value taken from an Elasti
Even better, the Mastodon harvester could use a WebSocket to communicate with Mastodon in streaming mode and have the function
executed whenever there are new posts.
Download the [Mastodon.py](https://mastodonpy.readthedocs.io/en/stable/) package as source code and put it in the `functions/mharvester` directory.
Create the archive, the package, and the function:
```shell
(
cd ./functions/mharvester
cd ./fission/functions/mharvester
zip -r mharvester.zip .
mv mharvester.zip ../
)
......
......@@ -6,6 +6,7 @@ def main():
client = Elasticsearch (
'https://elasticsearch-master.elastic.svc.cluster.local:9200',
verify_certs= False,
ssl_show_warn= False,
basic_auth=('elastic', 'elastic')
)
......
decorator==5.1.1
Mastodon.py==1.8.1
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment