The message in the title is actually a warning, not an error and shouldn't
prevent your code from running (GAE simply does not allow you to set some
HTTP headers which is fine most of the time), although the code your are
providing seems to be incomplete. You should provide more info/stack trace
related to what you're trying to do.
Thanks,
Mihail.
On Wednesday, January 28, 2015 at 12:15:08 AM UTC+2, Emin Yesildere wrote:
>
> Hi;
> I try to scrap a website with using beautifulsoup, but this error occurs
> at gae logs. How can I solve this issue?
> I use this script
>
> import sys
> sys.path.append('libs/')
> reload(sys); sys.setdefaultencoding('utf-8')
> from bs4 import BeautifulSoup
> import urllib
> from google.appengine.api import urlfetch
>
> from datetime import datetime
> import locale
> import PyRSS2Gen
> locale.setlocale(locale.LC_ALL, '')
> import requests
> import codecs
>
> def parse(url):
> page.urllib2.urlopen(url)
> soup=BeautifulSoup(page.read())
> for link in soup.find_all('article',{'class':'item-list'}):
> ka= link.find_all('div')[1].get_text()
> .....
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/2d9400c5-ccc5-4ed2-9a7f-a08281bba994%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.