This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
import os | |
import sys | |
def getFile( id ): | |
url = 'http://dl.free.fr/%s' % id | |
# get initial link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Post GetMostRecentPost() | |
{ | |
Post mostRecentPost; | |
using(var db = Mongo.Create("mongodb://localhost/BlogApp")) | |
{ | |
var posts = db.GetCollection<Post>(); | |
//create a LINQ queryable to search the DB. | |
var q = posts.AsQueryable(); |