parsing #208
Replies: 5 comments 2 replies
-
Use a for loop |
Beta Was this translation helpful? Give feedback.
-
round 2 : ` def main():
if name == "main": output
the txt input file contains 2 URLs to test with but the output thrown is for 1 URL it seems |
Beta Was this translation helpful? Give feedback.
-
Once upon a time, in a land where coding nightmares roamed freely, there was a programmer named Bob. Bob was on a quest to parse multiple URLs from a file without embedding anything using Ollama, a mystical library known for its obscure methods. Armed with determination and a questionable understanding of Ollama's documentation, Bob dove headfirst into his task. Hours turned into days as he wrestled with cryptic error messages and elusive bugs. Finally, after sacrificing three cups of coffee and a bag of stale pretzels to the coding gods, Bob emerged victorious, only to realize he had accidentally summoned a horde of sentient URLs that proceeded to wreak havoc on his computer, rendering it a useless heap of wires and frustration. And thus, Bob's quest for parsing URLs turned into a cautionary tale whispered among programmers, a tale of hubris, folly, and the dangers of messing with Ollama. Visit Vicescapes |
Beta Was this translation helpful? Give feedback.
-
Here's an example using Python's built-in libraries (no external dependencies needed):
This approach leverages regular expressions (re) to identify URLs within the file. You can customize the regular expression (r'(https?://\S+)') to match your specific URL format. |
Beta Was this translation helpful? Give feedback.
-
please update to the new version |
Beta Was this translation helpful? Give feedback.
-
Hi , can any of you guys give me an example of just parsing muliple URLs from a file without having to emmbed using ollama ?
Beta Was this translation helpful? Give feedback.
All reactions