Reputation: 541 Enlightened
- Active Posts:
- 1,710 (0.88 per day)
- 08-November 08
- Profile Views:
- Last Active:
- Nov 29 2013 09:44 AM
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
- Expert In:
03 Mar 2014 - 05:40
22 Jan 2014 - 00:59
20 Dec 2013 - 11:30
10 Sep 2013 - 20:02
05 Sep 2013 - 13:51
04 Sep 2013 - 17:18
03 Sep 2013 - 12:52
21 Aug 2013 - 13:44
01 Aug 2013 - 08:53
28 Dec 2012 - 22:26
Posts I've Made
Posted 16 Sep 20131) Talking about APIs, in what format are the usually in? is it a library file which we need to dowload and later import? for instance, twitter API, we need to import twitter ?
APIs are actually typically implemented as a URL you hit, sometimes with data in a query string (like an access key or a username, for example) which returns data in a specific format which can be parsed(XML and JSON are commonly used).
1.what is 'AFTER' and 'TOKEN'? why are they even used here?
AFTER is supposed to be the timestamp that it's checking for entries "after", though it is not implemented (if it were, it would be in the query on line 14 before the LIMIT clause).
TOKEN refers to your access token which shows you have permission to use the API, and allows Facebook to verify what you have access to in it.
2.The get_post() function is to basically get all the first names of people who post. what is that query? and all those parameters inside?
This link answers that and more quite nicely.
3.I did not understand the request part also? how do they receive it from the API?
Kindly explain the get_post function in short.
They send the request to the URL on line 17 with the parameters on line 16 and get the results back in JSON which is parsed into a dictionary on line 18 and returned.
4.I understand, using a for loop, checking all the posts, but how does he link to the wall of fb of a particular accound and reply?Using APIs, but how? using requests? Requests module is used only for connecting apis with python?
The requests module is used for servicing HTTP requests from Python. Please refer back to the very first question you asked.
5. what is actor_id here? is it pythons code or graph apis?
Already answered in question 2, but actor_id refers to the person or page that made a particular post. It's part of Facebook's Graph API.
generally I get a lot of ideas in writing scripts, for instance, downloading a particular episode of a drama, at a particular time frm a website. But how do we link? how do we assign variables?
I'd answer this one, but I'm not sure I understand what you're asking.
Overall, I can tell from this post that you're very new to Python (and seemingly programming as a whole), and I think you're trying to get a bit ahead of yourself. As with all things, it's a good idea to crawl before you walk, and walk before you run. As such, though it's less "useful" at first, it's a good idea to familiarize yourself with the basics. This is the official tutorial for Python 3.x. It will teach you a lot, and if any of it is confusing, you're welcome to come back here and ask questions for clarification. We'd be more than happy to help you />
Posted 12 Sep 2013I don't disagree on any particular point. I'm just irritated that key parts of the site are unusable while I am at work because of this stupid crap
Posted 12 Sep 2013Thanks. Sorry I didn't get back to you quicker. Been trying to help while I'm at work.
Glad you got it working in any case
Posted 12 Sep 2013Fair enough. I had never used turtle before, so I was going off what information I got from the documentation. I'll continue looking.
Posted 12 Sep 2013This looks incomplete to me. I don't see any instances of Screen or the setup for it, and the turtle is never instantiated either.
I'm assuming you're using this. Is that correct?
- Member Title:
- The Real Skynet
- Age Unknown
- Birthday Unknown
- Programming, System Administration, IT Security, Linux, tinkering (tech and non-tech), learning new things.
- Full Name:
- Claude Devine
- Years Programming:
- Programming Languages:
Acceptable with: SQL, Perl, Python
Learning: C#, Java, Bash (Shell Scripting), Haskell, Ruby
- Website URL: