The utils
moduleο
This module contains a few helper functions that are used throughout the package
- InstaTweet.utils.get_agents()[source]View on GitHubο
Scrapes a list of user agents. Returns a default list if the scrape fails.
Note
Deprecated since 2.0.0b13, but might be useful when new endpoint gets patched
- Return type
- InstaTweet.utils.get_agent(index=0)[source]View on GitHubο
Returns a single user agent string from the specified index of the AGENTS list
Note
Deprecated since 2.0.0b13, but might be useful when new endpoint gets patched
- Return type
- InstaTweet.utils.get_proxies(env_key)[source]View on GitHubο
Retrieve proxies from an environment variable
- InstaTweet.utils.get_root()[source]View on GitHubο
- Return type
- InstaTweet.utils.get_filepath(filename, filetype='txt')[source]View on GitHubο
- Return type