mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-07 20:35:30 +01:00
🐬🦄 Webtasks doing automatic things for us via webtask.io
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
package.json | ||
README.md | ||
webtask-medium.js | ||
webtask-youtube.js |
Webtasks
Ocean Protocol's webtasks doing automatic things for us via webtask.io
Tasks
webtask-medium.js
: Generic task to fetch and reconstruct items from any medium publication.
Requires the Medium username appended at the end of the url, e.g. locally:
http://localhost:4000/MEDIUM_USERNAME
When published as a web task, append the taskname followed by the Medium username at the end:
https://TASK_URL/TASK_NAME/MEDIUM_USERNAME
webtask-youtube.js
: Generic task to fetch and reconstruct items from any YouTube account. For now, only fetches a playlist.
Construct your request url like so, e.g. locally:
http://localhost:4000/YOUTUBE_PLAYLIST_ID/YOUTUBE_API_KEY
Add the task name when published on webtask.io:
https://TASK_URL/TASK_NAME/YOUTUBE_PLAYLIST_ID/YOUTUBE_API_KEY
Development
npm install wt-cli -g
npm start
Deployment
All tasks are running serverless on webtask.io where you can login with your GitHub account. Then interact with it locally with the wt-cli
:
npm install wt-cli -g
wt init YOUR_GITHUB_EMAIL
wt create webtask-medium.js --name medium
# make sure it's there and get url
wt ls
Authors
- Matthias Kretschmann (@kremalicious) - BigchainDB & Ocean Protocol
- initial Medium web task by @pedrouid
License
Copyright 2018 Ocean Protocol Foundation Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.