Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(7)  |  Derive(0)  |  Import(5)

src/m/y/mygpo-feedservice-HEAD/feedservice/parse/soundcloud.py   mygpo-feedservice(Download)
from feedservice.parse.feed import Feedparser, FeedparserEpisodeParser
from feedservice.parse.mimetype import get_mimetype
from feedservice.utils import json, fetch_url
 
 
            % (self.username, settings.SOUNDCLOUD_CONSUMER_KEY)
 
        resp = fetch_url(json_url)
        user_info = json.loads(resp.read())
        return user_info.get('avatar_url', None)
                   }
 
        res = fetch_url(json_url)
        tracks = (track for track in json.loads(res.read())
                  if track['downloadable'])
        """
 
        res = fetch_url(url, headers_only=True)
        return (res.length, res.content_type,
                os.path.basename(os.path.dirname(res.url)))

src/m/y/mygpo-feedservice-HEAD/feedservice/parse/__init__.py   mygpo-feedservice(Download)
 
from feedservice.parse.models import Feed
from feedservice.utils import fetch_url, NotModified
 
 
 
    try:
        resp = fetch_url(feed_url, mod_since_utc)
        assert resp
 

src/m/y/mygpo-feedservice-HEAD/feedservice/parse/models.py   mygpo-feedservice(Download)
import logging
 
from feedservice.utils import flatten, longest_substr, get_data_uri, \
    fetch_url, transform_image
from feedservice.parse import mimetype
        try:
            url, content, last_mod_up, last_mod_utc, etag, content_type, \
                length = fetch_url(logo_url)
 
        except Exception, e:

src/m/y/mygpo-feedservice-HEAD/feedservice/parse/youtube.py   mygpo-feedservice(Download)
from feedservice.parse.feed import Feedparser, FeedparserEpisodeParser
from feedservice.parse.models import ParserException
from feedservice.utils import remove_html_tags, fetch_url
 
import logging
 
            while page is None:
                req = fetch_url(url)
                if 'location' in req.msg:
                    url = req.msg['location']
            username = m.group(1)
            api_url = 'http://gdata.youtube.com/feeds/api/users/%s?v=2' % username
            data = fetch_url(api_url)
            match = re.search('<media:thumbnail url=[\'"]([^\'"]+)[\'"]/>', data)
            if match is not None:

src/m/y/mygpo-feedservice-HEAD/feedservice/parse/vimeo.py   mygpo-feedservice(Download)
from feedservice.parse import FetchFeedException
from feedservice.parse.feed import Feedparser, FeedparserEpisodeParser
from feedservice.utils import fetch_url
 
VIMEO_RE = re.compile(r'http://vimeo\.com/user(\d+)/videos/rss')