Skip to main content

This package is made especially for developers or web scrapers for saving time while scraping the information.

Project description

regxdev

This package is made to developers for saving them time while playing in scraping the information.

Feature's of this project

  • Find's any format of phone number irrespective of the country.
  • Can find links from the string.
  • Can extract the mail id from a string.
  • Removes any links from the string.
  • Return's the index of the matching word present in the string as a list.
  • Can replace any word provided with a new word.

How to install and use it.

pip install regxdev

from regxdev import regxdev as rd

  • For finding phone number from the string you passed.

    result = rd.phone_finder("PASS THE STRING CONTAINING NUMBEERS") returns list of phone numbers

    Note: This method works only if numbers start with the prefix '+' and not containing parentheses.

  • For finding links.

    result = rd.link_finder("PASS THE STRING") returns list of links in the string.

  • For extracting mail ids.

    result = rd.mail_extractor("PASS THE STRING")

  • For removing links.

    result = rd.link_remover("PASS THE STRING")

  • This returns a list of tuples that is the index of a matched word you were searching for in the list.

    result = rd.word_finder("WORD TO BE FOUND", "PASS THE STRING")

    For example: when you run the above line you get output similar to result = [(2, 5), (11, 14)] each item are tuples, which contains the start index and end index of the word. you can use this tuple and by slicing the string you will have the word.

  • To replace any word from the string irrespective of length.

    result = rd.word_replacer("WORD TO REPLACE", "WORD TO BE REPLACED FOR", "PASS THE STRING")

    This returns a new string with a replaced character.

Feel free to contact me if you have any problem or looking for any new implementation or any idea/suggestion.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regxdev-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

regxdev-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file regxdev-1.0.0.tar.gz.

File metadata

  • Download URL: regxdev-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for regxdev-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ceb33ac349dfbd1e093a94d4a5c2a7788c3b4df2c41da58d2360d65be09d58fc
MD5 a3586575cea39e5358e639aaa2fc6eae
BLAKE2b-256 8a36c2d9e182fb48802a79ed467b9e7029fc74e9ca1f640ce6ea8617abf1afa5

See more details on using hashes here.

File details

Details for the file regxdev-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: regxdev-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for regxdev-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc2f9c46862b1bb789250d9707de3849a4894af4e472c9b470b563e784ef66c7
MD5 49ea0a93f8d015687c8ebac78c55b405
BLAKE2b-256 7c3da2811dc730074fe5ed5d0b50adb7d54c4408062169a9e0984fa479c9af7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page