Git Product home page Git Product logo

jmovies.imdb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jmovies.imdb's Issues

Runtime and Genre also null at tt7456722 with this library

Runtime:
IMDb

            IIMDbDataProvider imdbDataProvider = new IMDbScraperDataProvider();
            JMovies.IMDb.Entities.Movies.Movie movie = await imdbDataProvider.GetMovieAsync(7456722, new BasicProductionDataFetchSettings {
                PreferredCulture = "en-US"
            });

movie.Runtime is {00:00:00}

this not working

Hi,
This line of code
//Parse and verify IMDb ID Meta Tag
HtmlNode idMetaTag = documentNode.QuerySelector("meta[property='pageId']");
not working anymore always null

Async calls does not work from sync call?

I think asynchronous calls are not working from synchronous calls in your project. Only tests work fine, but they are asynchronous. Can you verify that synchronous calls can work with your latest asynchronous code?
Thanks.

With the latest version, my code gets stuck in GetMovie() indefinitely.
I had to create a branch from your last synchronous release: Classic_sync_version:
PatriceDargenton@73fa884

Also there is a strange issue: Some tests are not detected by Visual Studio 2022: SpecificMoviesTests???

Null reference issue

Describe the bug
Your test App is not working for me, null reference issue

            IIMDbDataProvider imdbDataProvider = new IMDbScraperDataProvider();
            JMovies.IMDb.Entities.Movies.Movie movie = await imdbDataProvider.GetMovieAsync(7456722, new BasicProductionDataFetchSettings {
                PreferredCulture = "en-US"
            });

error

Scraping nm0325717 results in null pointer

Describe the bug
When scraping William Golding, nm0325717 the library encounters a null pointer and crashes.
This happens in the latest released version, 1.8.3.

To Reproduce

var dataProvider = new IMDbScraperDataProvider();
var person = await dataProvider.GetPersonAsync(325717);

Stack trace

System.NullReferenceException: Object reference not set to an instance of an object.
   at JMovies.IMDb.Helpers.People.PersonPageHelper.Parse(Person person, HtmlNode documentNode, PersonDataFetchSettings settings)
   at JMovies.IMDb.Providers.IMDbScraperDataProvider.<>c__DisplayClass2_0.<AsyncGetPerson>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at JMovies.IMDb.Providers.IMDbScraperDataProvider.GetPersonAsync(Int64 id, PersonDataFetchSettings settings)

Additional information
I tried to specify PersonDataFetchSettings with various settings, but that had no effect.

Get all AKAs by Country

pic

JMovies.IMDb.Providers.IMDbScraperDataProvider movie = new JMovies.IMDb.Providers.IMDbScraperDataProvider();
var movieData = movie.GetMovie(0038969);
foreach (var item in movieData.AKAs) {
    list.Add(item.Name);
}

https://www.imdb.com/title/tt0038969

Its only leave me one AKA.

Where can i change the ScrapingCulture?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.