hal.internet.services package
Submodules
hal.internet.services.bitbucket module
Common classes and entities in Bitbucket
-
hal.internet.services.bitbucket.get_clone_url(remote_shortcut, user)[source]
Finds clone url of repository
| Parameters: |
- remote_shortcut – relative path of repository to clone
- user – User to clone with
|
| Returns: | Url to clone
|
hal.internet.services.github module
Common classes and entities in Github
-
class
hal.internet.services.github.GithubApi(api_type)[source]
Bases: hal.internet.services.github.GithubRawApi
Wrapper for generic Github API
-
static
get_trending_daily(lang='')[source]
Fetches repos in “Trending Daily” Github section
| Parameters: | lang – Coding language |
| Returns: | List of GithubUserRepository |
-
class
hal.internet.services.github.GithubRawApi(url='https://api.github.com/', url_params=None, get_api_content_now=False)[source]
Bases: object
Generic Github API
-
add_params_to_url(params)[source]
Adds params to url
| Parameters: | params – url params |
-
class
hal.internet.services.github.GithubUser(username)[source]
Bases: hal.internet.services.github.GithubApi
Model of a generic Github user profile
-
get_all_repos()[source]
Gets user repos
:return: List of all user repositories (public, orgs and private)
-
get_email()[source]
Gets email
:return: Email of user
-
get_repos()[source]
Gets user public repos
:return: List of user public repositories
-
get_starred_repos()[source]
Gets repos starred by user
:return: List of starred repositories
-
get_trending_daily_not_starred()[source]
Gets trending repositories NOT starred by user
:return: List of daily-trending repositories which are not starred
-
class
hal.internet.services.github.GithubUserRepository(username, repository_name)[source]
Bases: hal.internet.services.github.GithubApi
Model of a generic Github user repository
-
hal.internet.services.github.get_clone_url(remote_shortcut, token)[source]
Finds url of repo to clone
| Parameters: |
- remote_shortcut – relative path of repository to clone
- token – Github OAUTH token
|
| Returns: | Url to clone
|
-
hal.internet.services.github.get_token()[source]
Gets authentication token
| Returns: | authentication token |
hal.internet.services.youtube module
Get rss feed for youtube channel
-
class
hal.internet.services.youtube.YoutubeChannel(url)[source]
Bases: object
Youtube channel
-
get_channel_id()[source]
Fetches id
| Returns: | id of youtube channel |
-
get_channel_page()[source]
Fetches source page
| Returns: | source page of youtube channel |
-
get_feed_url()[source]
Fetches RSS url
| Returns: | rss url feed of youtube channel |
-
static
get_feed_url_from_channel(channel_name)[source]
-
static
get_feed_url_from_id(channel_id)[source]
Fetches feed url
| Parameters: | channel_id – id of channel |
| Returns: | feed url |
-
static
get_feed_url_from_video(video_url)[source]
Gets channel id and then creates feed url
| Parameters: | video_url – Url of video |
| Returns: | feed url |