Skip to content

Update get_lunch.sh#24

Open
HERJAODI wants to merge 1 commit into
tplive:mainfrom
HERJAODI:patch-1
Open

Update get_lunch.sh#24
HERJAODI wants to merge 1 commit into
tplive:mainfrom
HERJAODI:patch-1

Conversation

@HERJAODI

Copy link
Copy Markdown

New url structure.

New url structure.
Comment thread get_lunch.sh
destination="~/lunch/tu-$id-$date.jpg"
# https://www.tu.no/?module=TekComics&service=image&id=lunch&key=2020-05-28
curl --get --url "$url" --data-urlencode "module=$module" --data-urlencode "service=$service" --data-urlencode "id=$id" --data-urlencode "key=$date" --output "$destination"
curl --get --url "$url$date" --data-urlencode "module=$module" --data-urlencode "service=$service" --data-urlencode "id=$id" --data-urlencode "key=$date" --output "$destination"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not better to use the --data-urlencode directives to ensure that url queries are handled properly? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants