WordPress.org

Ready to get started?Download WordPress

Forums

Netflix plugin request (30 posts)

  1. southerngal
    Member
    Posted 10 years ago #

    I saw this on a blog in use and it's really something I would like to have for WP. :) Any takers?

  2. Kitten
    Member
    Posted 10 years ago #

    Sure, but I don't have a netflix account :(

  3. southerngal
    Member
    Posted 10 years ago #

    This was a request to have someone create it. Can you create this plugin, Kitten?

  4. Kitten
    Member
    Posted 10 years ago #

    I could try, but would need access to a NetFlix account. If you'd like to follow up, contact me.

  5. southerngal
    Member
    Posted 10 years ago #

    There are plug-ins already coded and in use for other blogging programs. Most plug-ins are coded and tested by people that have Net Flix accounts.
    You could always sign up for an account if you really wanted to test it without a beta tester group.

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    This is a straightforward site-scraper, easy to write and duplicate for any platform. If written for a dynamic site, you just need to record a time along with a hit and set it to scrape only a few times a day instead of every hit

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    I have adapted this for php use in WordPress and Expression Engine.
    Netflix Queue PHP

  8. southerngal
    Member
    Posted 10 years ago #

    Thank you Oscar! :)

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    You're welcome. I'm going to try to expand it a bit when I get a chance.

  10. southerngal
    Member
    Posted 10 years ago #

    I would love to use this Netflix plugin, but I have no idea how to make it work for WP. Anyone up to the challenge?

  11. southerngal
    Member
    Posted 10 years ago #

    Anyone? :)

  12. southerngal
    Member
    Posted 10 years ago #

    Asking nicely. ;) Please?

  13. Anonymous
    Unregistered
    Posted 10 years ago #

    I have noticed a number of hits on my site from this post, and I know that my basic port of my MT plugin is very limited. I would encourage someone to take a look at Paul's EE plugin and use it as a model to develop standalone php code for Netflix scraping. It should be very easy to do. I myself do not have the time, however, and also cannot maintain two separate sets of code for time reasons. I do, on the other hand, have a vacation coming up, and I may be able to fold all three of my Perl plugins into a single script accessible through php as in my little queue example above. That way, I only have to keep up with one set of scraping codes as Netflix evolves their site. I can't make any promises, but I hope to have a little free time to do this in the next couple of weeks.

  14. southerngal
    Member
    Posted 10 years ago #

    Oscar, I would appreciate this! I have patiently waited for someone to answer this thread and I'm glad you actually are willing to try if you get the time. :)
    I'm a little disappointed in the community that I have been a member of for almost a year.

  15. Anonymous
    Unregistered
    Posted 10 years ago #

    Goodness -- if you are that pationate about it head on over to http://www.php.net learn something and contribute rather than expecting something for nothing then and whining about it. Open Source is not about having vast numbers of people colaborating to serve you (one an ever growing group of people that expect software to be tailer made for them for free ...)
    If you see a need and it is not filled remind yourself that you are not paying for anything and nobody is earning anything here, and then instead of being "disappointed" pony up and do the work yourself.

  16. carthik
    Member
    Posted 10 years ago #

    Anon, take it easy dude :)
    southerngal, there is only so much some folks can do on a day, so people scratch where it itches most. I do not have a netflix account, and am not interested in this right now, for example.
    Your patience is appreciated, and you don't totally have to rely upon these forums, if you are willing to pay for the work, that is.
    I am not suggesting anything here, at all.
    Thanks for the patience, and we all like to have you around. :)

  17. rsbenedict
    Member
    Posted 10 years ago #

    I've implemented Oscars hack using a php include to include the netflix.php file into my menu. I'm not a programming genius (heck, I'm not even a programming idiot, yet. :-)). Anyone know how to limit the number of listed items? Currently Oscars script defaults to all. That can be a very long list.
    Thanks!

  18. brett
    Member
    Posted 9 years ago #

    rsbenedict: not sure if anyone helped you on this or not but I used the old netflix plugins before Oscar did all the great work to add all the functionality he did and I wanted to limit the list too. Here is what you need to do.
    after line 26 which is: my $out = '';
    add another line: my $i = 1;
    then change this line: while ($c =~ m!s=bd>(.*?)</tr>!sg) {
    to: while ($c =~ m!s=bd>(.*?)</tr>!sg && $i < 11) {
    change 11 to one more than however many you want displayed
    finally, after the print line, add another line with: $i++;
    I use this along with a hack of the netflix outstanding plugin I made with my WP testing site which I haven't publicized yet, and it works perfectly.

  19. southerngal
    Member
    Posted 9 years ago #

    Brett, your sidebar looks great! How in the world did you get your movies you have at home on there? I looked at the code and didn't see a place to change that. Any help would be great. :) I really want to put that on my Netflix page as well as pull it into the sidebar with an include.

  20. brett
    Member
    Posted 9 years ago #

    Southerngal,
    To get the movies at home part, I took Oscar's netflix-outstanding plugin from MT and hacked it down to match up with the netflix.cgi he created and called it netflixo.cgi then in my index.php file I include each one seperately. If you're interested, I can send you the netflixo.cgi file and the quick instructions to add it in.

  21. rsbenedict
    Member
    Posted 9 years ago #

    Hi, Brett!
    I would love to have your code for netflixo.cgi and then the additional code in index.php.
    I've recently purchased a book on PHP and am trying to learn, but it's slow going. Disecting good code helps me a lot!
    Thanks!
    Josh

  22. brett
    Member
    Posted 9 years ago #

    I put the code up at http://brettly.net/netflixo.txt. Just save that file, change the name to netflixo.cgi and put it in your cgi-bin directory with the netflix.cgi from Oscar's code.
    Once you have that, create a second .dat file (I use netflixo.dat) with the same permissions you have for the netflix.dat file.
    Finally, make a copy of the code you used above to display the queue and change the $filename line to point to the new .dat file and the $output line to point to the new .cgi file and put it in your index.php where you want the outstanding queue to appear.
    Hopefully that works, I set it up a month ago so I'm trying to remember if I changed anything else.

  23. southerngal
    Member
    Posted 9 years ago #

    Thanks Brett! I will have to try that this week! :)

  24. southerngal
    Member
    Posted 9 years ago #

    Works perfectly, thank you Brett!! :)

  25. gracebytes
    Member
    Posted 9 years ago #

    Does anyone have a copy of Oscars Netflix plugin/hack/phpthingy they could upload or send me? His server seems to be down and I'm too impatient to wait for it to come back up. Thanks.

  26. piginzen
    Member
    Posted 9 years ago #

    has anyone integrated this in to WP Plugins yet?
    I'd love to see this...
    thanks,
    mat

  27. Anonymous
    Unregistered
    Posted 9 years ago #

    I have a very basic Netflix pluging I am just finishing up -- I guess the functions could go in the hacks file eventually or into the WP Plugins file if it was deemed quality enough. The only issue with it I have is that it does not store a local copy of the data, merely goes and gets the RSS from netflix whenever the page is loaded.
    If thats not an acceptable solution I would be happy to post the code, and let ya'll adapt it as soon as I have finished tidying it up. At the moment I am only displaying the recent rental activity rather than my whole queue and have nixed the descriptions (they create problems with my template). http://www.dubyadubyadubyadotcom.com/index.php?p=248 Not much to see really but its there. I'll throw together a function set that can be used by anybody in the next day or so.
    As for SouthernGirl in this very thread ... tis a shame we have people that only take and never give. If the people that create this kind of stuff for you have "no life" then feeding off them really makes you a bottom feeder. I think what irritated the prior poster was your "dissapointment" at the community and your whole tone that indicated that you thought somehow we owed you.

  28. piginzen
    Member
    Posted 9 years ago #

    yeah, i kinda like the idea of it only showing the 3 movies you have out at that time...
    cant wait for it to be done!
    thanks so much,
    mat

  29. Anonymous
    Unregistered
    Posted 9 years ago #

    I've got a pretty nice setup going; though it's not a full-fledged WordPress plugin, it does exactly what I want. Maybe someone else would get some use out of it, so here goes.
    It comes out looking like this. You could include it onto the side menu (or anywhere else) if you wish, but mine is way too long to do that.
    To use, download the free "PHP RSS Reader" script found here:
    http://www.rjk-hosting.co.uk/programs/prog.php?id=7
    Modify it as such:
    line 39: http://slashdot.org/index.rss = change this to the RSS URL found at the bottom of your Netflix queue page.
    lines 124-143: Modify this to change how it looks.
    Upload it to your server, and wahlah. Your netflix queue is now public.

  30. ufbert
    Member
    Posted 8 years ago #

    I'm way late on this one, but I recently created a Netflix plugin. You can find it here: http://www.albertbanks.com/wordpress-netflix-plugin/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.