Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:58:47+00:00 2026-06-17T20:58:47+00:00

So im just experimenting, trying to parse through the web using python and i

  • 0

So im just experimenting, trying to parse through the web using python and i thought i would try to make a script that would search for my favorite links to watch shows online. Im trying to now have my program search through sidereel.com for a good link to my desired show and return to me the links. I know that the site saves the links in the following format:

watch-freeseries.mu’then some long string that i need to ignore followed by ‘14792088’

So what i need to be able to do is to find this string in the txt file of the site and return to me only the 8 numbers at the end of the string. I not sure how i can get to the numbers and i need them because they are the link number. Any help would be much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:58:49+00:00Added an answer on June 17, 2026 at 8:58 pm

    You could use a regular expression to do this fairly easily.

    >>> import re
    >>> text = "watch-freeseries.mu=lklsflamflkasfmsaldfasmf14792088"
    >>> expr = re.compile("watch\-freeseries\.mu.*?(\d{8})")
    >>> expr.findall(text)
    ['14792088']
    

    A breakdown of the expression:

    watch\-freeseries\.mu – Match the start of the expected expression. Escape any possible special characters by preceding them with \.

    .*? – Match any character. . means any character and * means that appear one after the other an infinite amount of times. The ? is to perform a non-greedy match so that the match will not overlap if two or more urls show up in the same string.

    (\d{8}) – Match and save the last 8 digits

    Note: If you’re trying to parse links out of a webpage there are easier ways. I’ve seen many recommendations on StackOverflow for the BeautifulSoup package in particular. I’ve never used it myself so YMMV.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi so im using python and i'm trying to create a function that lets
I've just been experimenting with a CSS tooltip that fades in with CSS3's transitions.
I'm just starting experimenting with jQuery and trying to apply it to a very
just messing around, trying to expand my bag o' tricks: I was just experimenting
I'm experimenting with ZeroMQ and trying to get something working. My first thought was
I'm writing a simple REST service in Node.js (just experimenting), trying to figure out
I've just started experimenting with Prolog, and I was trying to write a rule
I'm just starting out with Python and experimenting with different solutions. I was working
I've been experimenting lately with some css3. What I'm trying to do is make
I'm experimenting with a script and trying to adopt use for an iOS device.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.