BinaryWorks.it Official Forum
Home
|
Profile
|
Active Topics
|
Members
|
Search
|
FAQ
All Forums
eXtreme Movie Manager 8, 9, 10 Forum
Scripts
IMDb API & Web Scraping
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
Das stimmt allerdings [:D] Was evtl. noch der Erklärung bedarf: [code] List<FilmingLocation> filmingLocations = await Scraper.ScrapeAllFilmingLocationsAsync(imdbID); LocationsPage? locationsPage = await Scraper.ScrapeLocationsPageAsync(imdbID); [/code] LocationPage - Ich hätte vermutet, dass hiermit eine bestimmte Seite geladen wird. Aber dann hätte die ja eigentlich vor dem List stehen müssen. Und noch eine letzte Frage, IMDB fragt ja die CountryLocale des users ab und zeigt auf der Seite dann z.B. den Plot auf deutsch an. Kannst du das mit dem Scraper auch nachbilden? Evtl. per zusätzlicher Option? Last but not least: Bei den Distributoren fehlt noch Land, Jahr und Medium. Dann könnte man z.B. nur die deutschen Vertriebe rausfiltern. Außerdem wären dann auch keine doppelten Einträge vorhanden. Und: Warum ist der letzte Eintrag trotzdem doppelt (Film: Matrix - 1999)? [code] sbExport.AppendLine("---Production Distributors"); HashSet<string> uniqueCompanyNames = new HashSet<string>(); foreach (Company company in companies.Distribution) { if (!uniqueCompanyNames.Contains(company.Name)) { uniqueCompanyNames.Add(company.Name); sbExport.AppendLine($"{company.Name}"); } } [/code] Edit: Hier habe ich Schwierigkeiten: [code] sbExport.AppendLine($"---Connections FollowedBy"); foreach (Connection connection in connections.FollowedBy) { sbExport.AppendLine($"{connection.AssociatedTitle.URL}|{connection.AssociatedTitle.LocalizedTitle} ({connection.AssociatedTitle.YearFrom})"); } [/code] Wie iteriere ich durch alle Kategorien, die nicht leer sind?
Check here to include your profile signature.
BinaryWorks.it Official Forum
© Binaryworks.it
Generated in 0.02 sec.