The little things give you away... A collection of various small helper stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
456 B

  1. #!/bin/bash
  2. hashtag="$1"
  3. shift
  4. {
  5. echo "https://twitter.com/hashtag/${hashtag}"
  6. echo "https://twitter.com/hashtag/${hashtag}?src=hash"
  7. echo "https://twitter.com/hashtag/${hashtag}?f=tweets&vertical=default"
  8. echo "https://twitter.com/hashtag/${hashtag}?f=tweets&vertical=default&src=hash"
  9. snscrape --format '{url} {tcooutlinksss} {outlinksss}' "$@" twitter-hashtag "${hashtag}" | tr ' ' '\n' | grep -v '^$' | awk '!seen[$0]++'
  10. } > "twitter-#${hashtag}"