Skip to content

Instantly share code, notes, and snippets.

View daonb's full-sized avatar
๐Ÿ––

benny daon daonb

๐Ÿ––
View GitHub Profile
@daonb
daonb / tweepy_runner.py
Created November 13, 2017 20:43 — forked from MihaiTabara/tweepy_runner.py
Script to download Twitter timeline for a user and store it to MongoDB
# script to download up to <= 3200 (the official API limit) of most recent tweets from a user's timeline
from pymongo import MongoClient
import tweepy
import json
#Twitter API credentials
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
function parseResponse(data) {
var bookshelf = document.getElementById("bookshelf");
for (var i=0; i<6; i++) {
var cover = data.reader_books[i].book_edition.covers.cover_medium;
var title = data.reader_books[i].book_edition.title;
var permalink = data.reader_books[i].permalink;
var link = document.createElement("a");
link.setAttribute("href",permalink);
<p dir="rtl"><strong>ื—ื•ืง ื—ื•ืคืฉ ื”ืžื™ื“ืข, ื”ืชืฉื "ื—</strong><strong>1998-</strong><strong> </strong><sup>1</sup></p>
<p dir="rtl"><strong>1. ื—ื•ืคืฉ ืžื™ื“ืข</strong></p>
<p dir="rtl">ืœื›ืœ ืื–ืจื— ื™ืฉืจืืœื™ ืื• ืชื•ืฉื‘ ื”ื–ื›ื•ืช ืœืงื‘ืœ ืžื™ื“ืข ืžืจืฉื•ืช ืฆื™ื‘ื•ืจื™ืช ื‘ื”ืชืื ืœื”ื•ืจืื•ืช ื—ื•ืง ื–ื”.</p>
<p dir="rtl"><strong>2. ื”ื’ื“ืจื•ืช</strong><sup>4</sup><strong> </strong></p>
<p dir="rtl">ื‘ื—ื•ืง ื–ื” -</p>
<p dir="rtl"><strong>"ื•ืขื“ื” ืžืฉื•ืชืคืช"</strong> - ื•ืขื“ื” ืžืฉื•ืชืคืช ืฉืœ ื•ืขื“ืช ื”ื—ื•ืงื” ื—ื•ืง ื•ืžืฉืคื˜ ื•ื•ืขื“ืช ื”ื—ื•ืฅ ื•ื”ื‘ื˜ื—ื•ืŸ ืฉืœ ื”ื›ื ืกืช;</p>
<p dir="rtl"><strong>"ืžื™ื“ืข"</strong> - ื›ืœ ืžื™ื“ืข ื”ืžืฆื•ื™ ื‘ืจืฉื•ืช ืฆื™ื‘ื•ืจื™ืช, ื•ื”ื•ื ื›ืชื•ื‘, ืžื•ืงืœื˜, ืžื•ืกืจื˜, ืžืฆื•ืœื ืื• ืžืžื•ื—ืฉื‘;</p>
<p dir="rtl"><strong>"ืžืžื•ื ื”"</strong> - ืžื™ ืฉืžื•ื ื” ืœืคื™ ืกืขื™ืฃ 3;</p>
<p dir="rtl"><strong>"ืงื‘ืœืช ืžื™ื“ืข"</strong> - ืœืจื‘ื•ืช ืขื™ื•ืŸ, ืฆืคื™ื”, ื”ืื–ื ื”, ื”ืขืชืงื”, ืฆื™ืœื•ื, ืงื‘ืœืช ืคืœื˜ ืžื—ืฉื‘ ืื• ืงื‘ืœืช ืžื™ื“ืข ื‘ื›ืœ ื“ืจืš ืื—ืจืช ื‘ื”ืชืื ืœืกื•ื’ ื”ืžื™ื“ืข ื•ืฆื•ืจืช ื”ื—ื–ืงืชื•;</p>
<p dir="rtl"><strong>"ืจืฉื•ืช ืฆื™ื‘ื•ืจื™ืช"</strong><sup>4</sup> -</p>
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._