Skip to content

Commit

Permalink
upgrade protocol from http to https
Browse files Browse the repository at this point in the history
for a more secure connection
  • Loading branch information
VitoVan authored Aug 19, 2021
1 parent 96d1aa1 commit c4520db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ $# -eq 0 ]; then
fi

query="$@"
curl -sSLG "http://cn.bing.com/dict/search" --data-urlencode "q=$query" |\
curl -sSLG "https://cn.bing.com/dict/search" --data-urlencode "q=$query" |\
grep -Eo '<meta name="description" content="(.+) " ?/>' |\
sed -E 's/<meta name="description" content="必应词典为您提供.+的释义,(.+)" ?\/>/\1/' |\
sed -E 's/(.*)(,)(.*)/\1 \3/' | awk -v "QUERY=$query" '{
Expand Down

0 comments on commit c4520db

Please sign in to comment.