import pywikibot

site = pywikibot.Site("sa","wikisource")

page = pywikibot.Page(site,u"पृष्ठम्:Rekha Ganita.djvu/१८७")

page.properties()

{}
page.text

''
page.save()

Page [[wikisource:sa:पृष्ठम्:Rekha Ganita.djvu/१४०]] saved

text = page.text

page.full_url()

'https://sa.wikisource.org/wiki/%E0%A4%AA%E0%A5%83%E0%A4%B7%E0%A5%8D%E0%A4%A0%E0%A4%AE%E0%A5%8D%3A%E0%A4%97%E0%A4%A3%E0%A4%BF%E0%A4%A4%E0%A4%B8%E0%A4%BE%E0%A4%B0%E0%A4%B8%E0%A4%99%E0%A5%8D%E0%A4%97%E0%A5%8D%E0%A4%B0%E0%A4%B9%E0%A4%83%E0%A5%92%E0%A4%B0%E0%A4%99%E0%A5%8D%E0%A4%97%E0%A4%BE%E0%A4%9A%E0%A4%BE%E0%A4%B0%E0%A5%8D%E0%A4%AF%E0%A5%87%E0%A4%A3%E0%A4%BE%E0%A4%A8%E0%A5%82%E0%A4%A6%E0%A4%BF%E0%A4%A4%E0%A4%83%E0%A5%92%E0%A5%A7%E0%A5%AF%E0%A5%A7%E0%A5%A8.djvu%2F%E0%A5%AA%E0%A5%A6%E0%A5%AA'
text

''
t2 = '<noinclude><pagequality level="3" user="Venkateswaran raman" />{{rh|center=CHAPTER III--FRACTIONS.|right=53}}</noinclude>\n67 to 71. The denominators (of certain given fractions) are stated to be 19, 23, 62, 29, 123, 35, 188, 87, 98, 47, 140, 141, 116, 31, 92, 57, 73, 55, 110, 49, 74, 219, (in order); and the numerators begin with 1 and rise successively in value by 1 (in order). Add (all) these (fractions) and give the result. O you who have reached the other shore of the ocean of simple fractions.\n\nHere, the rule for arriving at the numerators, (when the denominators and the sum of a number of fractions are given, is as follows):--\n\n72. Make \'\'one\'\'  the numerator (in relation to all the given denominators); then, multiply by means of such (numbers) as are optionally chosen, those numerators which (are derived from these fractions so as to) have a common denominator. (Here), those (numbers) turn out to be the required numerators, the sum of the products whereof, obtained by multiplying them with the numerators (derived as above), is equal to the numerator of) the given sum(of the fractions concerned). \n\nThe rule for arriving at the numerators, (the denominators and the sum being given as before), in relation to such (fractional) quantities as have their numerators (successively) rising in value by \'\'one\'\', when, in the (given) sum (of these fractions), the denominator is higher in value than the numerator:--\n\n73. The quotient obtained by dividing the (given) sum (of the fractions concerned) by the sum of those (tentative fractions)\n\n{{rule}}\n\n<small>\n72. This rule will become clear from the working of the example in stana No. 74, wherein we assume 1 to be the provisional numerator in relation to each of the given denominators; thus we get $\\tfrac{1}{9}, \\tfrac{1}{10}$ and $\\tfrac{1}{11}$ which, being reduced so as to have a common denominator, become $\\tfrac{110}{990}, \\tfrac{99}{990}$ and $\\tfrac{90}{990}$. When the numerators are multiplied by 2, 3 and 4 in order, the sum of the products thus obtained becomes equal to the numerator of the given sum, namely, 877. Hence, 2, 3, and 4 are the required numerators. Here it may be pointed out that this given sum also must be understood to have the same denominators as the common denominator of the fractions\n\n73. To work out the sum given under 74 below, according to this rule:--<br>\nReducing to the same denominator the fractions formed by assuming 1 to be the numerator in relation to each of the given denominators, we get, $\\tfrac{110}{990}, \\tfrac{99}{990}$ and $\\tfrac{90}{990}$. Dividing the given sum $\\tfrac{877}{990}$  by the sum of these fractions $\\tfrac{299}{990}$, we get the quotient 2, which is the numerator in relation to the first denominator. The remainder 279\n</small><noinclude></noinclude>'

t2

'<noinclude><pagequality level="3" user="Venkateswaran raman" />{{rh|center=CHAPTER III--FRACTIONS.|right=53}}</noinclude>\n67 to 71. The denominators (of certain given fractions) are stated to be 19, 23, 62, 29, 123, 35, 188, 87, 98, 47, 140, 141, 116, 31, 92, 57, 73, 55, 110, 49, 74, 219, (in order); and the numerators begin with 1 and rise successively in value by 1 (in order). Add (all) these (fractions) and give the result. O you who have reached the other shore of the ocean of simple fractions.\n\nHere, the rule for arriving at the numerators, (when the denominators and the sum of a number of fractions are given, is as follows):--\n\n72. Make \'\'one\'\'  the numerator (in relation to all the given denominators); then, multiply by means of such (numbers) as are optionally chosen, those numerators which (are derived from these fractions so as to) have a common denominator. (Here), those (numbers) turn out to be the required numerators, the sum of the products whereof, obtained by multiplying them with the numerators (derived as above), is equal to the numerator of) the given sum(of the fractions concerned). \n\nThe rule for arriving at the numerators, (the denominators and the sum being given as before), in relation to such (fractional) quantities as have their numerators (successively) rising in value by \'\'one\'\', when, in the (given) sum (of these fractions), the denominator is higher in value than the numerator:--\n\n73. The quotient obtained by dividing the (given) sum (of the fractions concerned) by the sum of those (tentative fractions)\n\n{{rule}}\n\n<small>\n72. This rule will become clear from the working of the example in stana No. 74, wherein we assume 1 to be the provisional numerator in relation to each of the given denominators; thus we get $\\tfrac{1}{9}, \\tfrac{1}{10}$ and $\\tfrac{1}{11}$ which, being reduced so as to have a common denominator, become $\\tfrac{110}{990}, \\tfrac{99}{990}$ and $\\tfrac{90}{990}$. When the numerators are multiplied by 2, 3 and 4 in order, the sum of the products thus obtained becomes equal to the numerator of the given sum, namely, 877. Hence, 2, 3, and 4 are the required numerators. Here it may be pointed out that this given sum also must be understood to have the same denominators as the common denominator of the fractions\n\n73. To work out the sum given under 74 below, according to this rule:--<br>\nReducing to the same denominator the fractions formed by assuming 1 to be the numerator in relation to each of the given denominators, we get, $\\tfrac{110}{990}, \\tfrac{99}{990}$ and $\\tfrac{90}{990}$. Dividing the given sum $\\tfrac{877}{990}$  by the sum of these fractions $\\tfrac{299}{990}$, we get the quotient 2, which is the numerator in relation to the first denominator. The remainder 279\n</small><noinclude></noinclude>'
page.text=t2

page.save(u'test edit save from paws')

Page [[wikisource:sa:पृष्ठम्:गणितसारसङ्ग्रहः॒रङ्गाचार्येणानूदितः॒१९१२.djvu/२४९]] saved

import urllib3
import urllib

urllib.parse.unquote(str)

'https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/गणितसारसङ्ग्रहः॒रङ्गाचार्येणानूदितः॒१९१२.djvu/page408-1024px-गणितसारसङ्ग्रहः॒रङ्गाचार्येणानूदितः॒१९१२.djvu.jpg'
str="https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/%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