Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83212
| Return-Path | <python-python-list@m.gmane.org> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; '(so': 0.07; 'deny': 0.07; 'failing': 0.07; 'remaining': 0.07; 'skip:" 60': 0.07; 'lawrence': 0.09; 'msg': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'language.': 0.14; "(it's": 0.16; '00:00:00': 0.16; 'andreas': 0.16; 'header:': 0.16; 'hits': 0.16; 'line)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:/ 130': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'skip:f 30': 0.19; 'command': 0.22; 'import': 0.22; 'header :User-Agent:1': 0.23; 'code:': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'raise': 0.29; 'matching': 0.30; "i'm": 0.30; '13,': 0.31; 'anyone': 0.31; 'file': 0.32; 'skip:m 30': 0.32; 'text': 0.33; 'linux': 0.33; '(most': 0.33; 'date:': 0.34; 'maybe': 0.34; 'subject:with': 0.35; 'google': 0.35; 'skip:" 50': 0.36; 'searching': 0.37; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:x 10': 0.40; 'entire': 0.61; 'facebook': 0.61; 'our': 0.64; '2000': 0.65; 'charset:windows-1252': 0.65; 'close': 0.67; 'skip:w 30': 0.69; 'friends': 0.81; '2015': 0.84; 'text/html;': 0.84; 'on?': 0.91; 'picture': 0.97 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: Probem with fbconsole |
| Date | Sun, 04 Jan 2015 17:13:44 +0000 |
| References | <62fdbcf0-0c40-4fde-b018-4a0b55921fb6@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | host-92-24-222-48.ppp.as43234.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
| In-Reply-To | <62fdbcf0-0c40-4fde-b018-4a0b55921fb6@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17375.1420391642.18130.python-list@python.org> (permalink) |
| Lines | 61 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420391642 news.xs4all.nl 2859 [2001:888:2000:d::a6]:44234 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:83212 |
Show key headers only | View raw
On 04/01/2015 17:03, Ole Andreas Gløersen wrote:
> I want to enter text msg and upload picture (so all friends can see and some private pictures) to my Facebook acount.
>
> I'm working with fbconsole (it's important that it is text based command line) for setting up cron job on a Raspberry Pi.
>
> My code:
>
> import fbconsole
>
> redirect_uri = "https://local.fbconsole.com:8080/"
> fbconsole.SITE_URL=redirect_uri
>
> fbconsole.APP_ID = 'my_SW_ID'
>
> fbconsole.AUTH_SCOPE = ['read_stream']
> fbconsole.automatically_authenticate('my_FB_ID','my_FB_PWD','Security_code',fbconsole.SITE_URL,True)
>
>
>
> My result:
>
> pi@raspberrypi ~/facebook $ python f.py
> send: 'GET /dialog/oauth?scope=read_stream&state=Deletet....Deletet....&redirect_uri=https%3A%2F%2Flocal.fbconsole.com%3A8080%2F&client_id=Deletet.... HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: www.facebook.com\r\nConnection: close\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1\r\n\r\n'
> reply: 'HTTP/1.1 200 OK\r\n'
> header: Pragma: no-cache
> header: Facebook-API-Version: v2.2
> header: X-Frame-Options: DENY
> header: Cache-Control: private, no-cache, no-store, must-revalidate
> header: Expires: Sat, 01 Jan 2000 00:00:00 GMT
> header: X-XSS-Protection: 0
> header: X-Content-Type-Options: nosniff
> header: Content-Type: text/html; charset=utf-8
> header: X-FB-Debug: Deletet.............Deletet....
> header: Date: Sun, 04 Jan 2015 16:51:31 GMT
> header: Connection: close
> Traceback (most recent call last):
> File "f.py", line 13, in <module>
> fbconsole.automatically_authenticate('Deletet....','Deletet....','Deletet....',fbconsole.SITE_URL,True)
> File "/usr/local/lib/python2.7/dist-packages/fbconsole.py", line 413, in automatically_authenticate
> browser.select_form(nr=0)
> File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 524, in select_form
> raise FormNotFoundError("no form matching "+description)
> mechanize._mechanize.FormNotFoundError: no form matching nr 0
> pi@raspberrypi ~/facebook $
>
>
> Can anyone help me futher on?
>
>
Maybe
http://stackoverflow.com/questions/10507169/using-python-requests-to-select-forms
failing which work your way down the remaining 816 hits on google after
searching for the entire FormNotFoundError line :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Probem with fbconsole Ole Andreas Gløersen <ole.andreas.gloersen@gmail.com> - 2015-01-04 09:03 -0800 Re: Probem with fbconsole Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-04 17:13 +0000
csiph-web