fetching imdb to mysql

year=””
nameoffilm=””
for x in range(0, len(c)-1):
    if(c[x][0]==’M’and c[x][1]==’V’):
        for y in range(0, len(c[x])-1):
            if(c[x][y]=='(‘):
                for z in range(y+1,y+5):
                    year+=c[x][z]
                print year
                year=””   
                for z in range(3,y):
                    nameoffilm+=c[x][z]
                print nameoffilm
                nameoffilm=””
                break

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: