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
[quote][i]Originally posted by tarzibou[/i] [br]Hab mich bissl ausgetobt: [url]https://github.com/tardezyx/tar.IMDbScraper/releases/download/1.1.0/tar.IMDbExporter.zip[/url] [/quote] WOW! Wesentlich strukturierter und schneller als mein Versuch [:)] Was ich gerade noch implementiert habe: [code] tbxID.Text = arguments.Length > 0 ? ParseIMDBLink(arguments[0]) : "tt0133093"; // Matrix (1999) [/code] und nach region --- fields --- [code] #region --- parse imdb link ------------------------------------------------------------------- static string ParseIMDBLink(string url) { // Remove any trailing slashes from the URL url = url.TrimEnd('/'); // Find the last occurrence of '/' int lastSlashIndex = url.LastIndexOf('/'); if (lastSlashIndex >= 0) { // Extract the portion of the URL after the last '/' string identifierPart = url.Substring(lastSlashIndex + 1); // Remove any non-numeric characters from the extracted part string numericPart = new string(identifierPart.Where(char.IsDigit).ToArray()); // Add "tt" in front of the numeric part string imdbIdentifier = "tt" + numericPart; return imdbIdentifier; } else { return null; // URL format is not recognized } } #endregion [/code] Und gut zu wissen, dass sogar einem "Profi" wie dir noch ein Fehler unterlaufen kann: Es werden nämlich keinerlei Connections mehr gespeichert. [:p] iMDbTitle.Connections ist immer null... Keine Ahnung, warum.
Check here to include your profile signature.
BinaryWorks.it Official Forum
© Binaryworks.it
Generated in 0.02 sec.