About 30,000,000 results
Open links in new tab
  1. Python – Extract hashtags from text - GeeksforGeeks

    Feb 14, 2023 · We are provided with a string containing hashtags, we have to extract these hashtags into a list and print them. Examples: Method 1: Split the text into words using the …

  2. hashtag - Python: Place # in front of several lines - Stack Overflow

    Aug 25, 2019 · Install Visual studio Code in windows, it will allow you to comment multiple lines using ctrl + / in any python file.

  3. An elegant way to get hashtags out of a string in Python?

    Nov 20, 2015 · I'm looking for a clean way to get a set (list, array, whatever) of words starting with # inside a given string. In C#, I would write var hashtags = input .Split (' ') .Where (s => s[0] == …

  4. Python hash() method - GeeksforGeeks

    Jul 26, 2024 · Python hash () function is a built-in function and returns the hash value of an object if it has one. The hash value is an integer that is used to quickly compare dictionary keys while …

  5. python - How can I extract hashtags from string? - Stack Overflow

    May 8, 2021 · I need to extract the "#" from a function that receives a string. Here's what I've done: def hashtag(str): lst = [] for i in str.split(): if i[0] == "#": lst.append(...

  6. How to hash a string in Python - Stack Overflow

    Dec 27, 2021 · You can hash values in Python 3 with Hashlib: import hashlib h = hashlib.new('sha256')#sha256 can be replaced with diffrent algorithms h.update('Hello …

  7. python - Get hash value from a URL - Stack Overflow

    Assuming that you have the url and just want to get the "hash", the easiest way to get the hash is to split it using '/' as the parameter and then getting the 5th element of the list returned. url = "" …

  8. Extracting Tweets containing a particular Hashtag using Python

    Dec 29, 2021 · This article focuses on how to extract tweets having a particular Hashtag starting from a given date. Requirements: Tweepy is a Python package meant for easy accessing of …

  9. Python Regex expression for extracting hashtags from text

    Nov 16, 2016 · I'm processing some tweets I mined during the election and I need to a way to extract hashtags from tweet text while accounting punctuation, non-unicode characters, etc …

  10. regex - Insert hashtags in python string - Stack Overflow

    I try to insert '#' in front of specific words in a sentence with an elegant solution (not a big function with many 'if'). hashwords = ['Google','Apple','Titan','Facebook'] input = 'Google,Apple,...

  11. Some results have been removed
Refresh